agent-orchestrator/backend/internal/httpd/controllers
Harshit Singh Bhandari 7c4a77d7cc
feat(spawn): add required --name flag for sidebar display name (#2302)
* 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>
2026-06-30 16:26:48 +05:30
..
dto.go feat(spawn): add required --name flag for sidebar display name (#2302) 2026-06-30 16:26:48 +05:30
imports.go feat: dashboard legacy-migration popup + app-state migration marker (#2219) 2026-06-27 02:24:36 +05:30
imports_test.go feat: dashboard legacy-migration popup + app-state migration marker (#2219) 2026-06-27 02:24:36 +05:30
notifications.go feat: add desktop notifications v1 (#262) 2026-06-22 01:14:04 +05:30
notifications_test.go feat: add desktop notifications v1 (#262) 2026-06-22 01:14:04 +05:30
projects.go feat(config): persist per-project agent config and resolve it at spawn (#154) 2026-06-08 21:35:29 +05:30
projects_test.go fix(project): detect the repo's default branch on add (#209) 2026-06-15 14:51:07 +05:30
prs.go feat(api): PR action routes — merge + resolve-comments (#88) 2026-06-03 04:43:50 +05:30
prs_test.go refactor(backend): LLD maintainability fixes in controllers/service layers (#95) (#96) 2026-06-03 18:09:02 +05:30
reviews.go feat: show multi-PR review status (#2193) 2026-06-29 18:20:28 +05:30
reviews_test.go feat: show multi-PR review status (#2193) 2026-06-29 18:20:28 +05:30
sessions.go feat(spawn): add required --name flag for sidebar display name (#2302) 2026-06-30 16:26:48 +05:30
sessions_activity_test.go feat: add notifications v1 (#181) 2026-06-14 20:02:32 +05:30
sessions_test.go feat(spawn): add required --name flag for sidebar display name (#2302) 2026-06-30 16:26:48 +05:30