* feat(spawn): add required --name flag for sidebar display name Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * feat(spawn): require --name for sidebar label; cap at 20 chars Add a required --name flag to `ao spawn` that sets the session's sidebar display name. The CLI rejects a missing or >20-character name before contacting the daemon. The daemon's POST /sessions keeps displayName optional (the desktop new-task dialog omits it and the read model falls back to the session id) but enforces the same 20-character cap when present, so a direct API call cannot exceed it. The value flows CLI -> SpawnSessionRequest -> SpawnConfig -> session record, and the existing read-model fallback (displayName ?? issueId ?? id) renders it in the sidebar unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| manager.go | ||
| manager_test.go | ||
| provision_test.go | ||