Repository navigation
feat(ui): start named sessions with /new --name - #93587
zhangguiping-xydt wants to merge 3 commits into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 12, 2026, 8:23 PM ET / July 13, 2026, 00:23 UTC. Summary PR surface: Source +70, Tests +202, Docs +3. Total +275 across 10 files. Reproducibility: not applicable. This PR adds a new command form rather than repairing a defined current-main failure; the proposed behavior nevertheless has high-confidence exact-head live proof. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Keep bare Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds a new command form rather than repairing a defined current-main failure; the proposed behavior nevertheless has high-confidence exact-head live proof. Is this the best way to solve the issue? Yes technically: the explicit option avoids ambiguity with existing AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0ba1e5ca2eb6. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +70, Tests +202, Docs +3. Total +275 across 10 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (15 earlier review cycles; latest 8 shown)
|
4baa144 to
3424d4f
Compare
3424d4f to
c866cab
Compare
21fca12 to
e8fa69a
Compare
d085908 to
48ff8e0
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Please re-review the current exact head The reported Please refresh the contributor-facing finding and status label against the current head and updated proof. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Closes #93422
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Control UI users can create a fresh dashboard session with typed
/new, butthere is no unambiguous way to give that new session a recognizable name. An
implicit
/new <text>naming rule would also conflict with the model-orientedmeaning that
/newarguments have on other chat surfaces.A successful create could additionally finish persisting and listing the new
session without switching the active Control UI route when the list refresh
replaced the initiating chat pane.
Why This Change Was Made
Control UI now recognizes only the explicit
/new --name <title>form fornew-session naming. Bare
/newand every other/new <text>form retain theexisting anonymous dashboard-session behavior, while
/name <title>remainsthe shared rename command and other surfaces keep their existing
/newsemantics.
This is a root-cause repair at the typed-command parsing and pane-lifecycle
ownership boundaries. The name continues through the existing validated
sessions.create.labelpath. The returned session key is handed to theoriginating pane before the forced session-list refresh publishes, so
refresh-driven lifecycle changes cannot discard a successful route switch.
This adds no Gateway field, schema, permission, persistence, model-routing, or
non-Control-UI behavior.
User Impact
Control UI users can type
/new --name Research Planor/new --name "Research Plan"to create, select, and visibly label a freshdashboard session. Existing
/newusage remains compatible and anonymousunless the explicit
--nameoption is present.If creation cannot safely switch the route, the typed command is restored in
the composer instead of disappearing as if it succeeded.
Evidence
Exact-head browser proof used commit
25083b59e15a264352a5743e55a8ef235f5d7a57, a production Control UI build,and a real isolated Gateway. It exercised the malformed, explicit-name,
bare, and arbitrary-text forms and inspected the session registry, returned
metadata, URL, ChatPane state, selected session state, and active sidebar
row.
A fresh targeted recheck of the asynchronous draft concern used the same
exact head and a new isolated Gateway/browser session:
The cited callback at
chat-view.ts:267belongs to the empty-thread welcomesuggestions. The bottom composer is a separate branch and receives
props.onSenddirectly atchat-view.ts:312; its settlement handler performsthe final controlled-textarea synchronization. Temporarily discarding the
Promise at that actual composer boundary makes the regression fail with an
empty textarea, while the submitted exact head passes. No additional source
change was made for the unrelated thread callback.
Affected UI tests: 410 passed across
chat-send.test.ts,chat-view.test.ts,chat-pane.test.ts, andlib/sessions/index.test.ts.pnpm check:changed -- ui/src/pages/chat/chat-view.ts ui/src/pages/chat/chat-view.test.tspassed, including formatting, type checking, lint, and changed-surface
guards. Focused formatting,
git diff --check, and a fresh productionControl UI build also passed.
The compatibility boundary remains intentionally narrow: only explicit
--nameopts into naming, arbitrary text remains anonymous, and acceptingthis Control UI-specific option remains a maintainer product decision.