Repository navigation
feat: make full session actions available from chat header - #128995
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 12:32 AM ET / 04:32 UTC. ClawSweeper reviewWhat this changesThe PR makes the Control UI chat-header menu reuse the sidebar’s session-management actions, including grouping, pinning, unread state, icons, and session-ID copying. Merge readinessKeep this maintainer-labeled PR open for final owner review. Current main lacks the requested header actions, and the exact-head source review found no blocking patch defect. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Control UI builds a chat header from the active Gateway session row. Header and sidebar menus dispatch user session changes through the shared organizer and Gateway session state. flowchart LR
A[Gateway session rows] --> B[Chat header]
A --> C[Sidebar menu]
B --> D[Shared session action presenter]
C --> D
D --> E[Session organizer]
E --> F[Gateway session mutations]
Decision needed
Why: The protected maintainer label requires explicit human handling even though the source review found no mechanical blocker. Before merge
Agent review detailsSecurityNone. PR surfaceSource +214, Tests +447, Docs 0, Other -1. Total +660 across 22 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared session-action presenter as the canonical path, then merge only after exact-head CI and protected-label owner review are complete. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main’s chat-header menu omits the session actions that the sidebar already exposes, while this head routes them through the shared presenter. Is this the best way to solve the issue? Yes. Reusing one presenter for both surfaces is more maintainable than adding another header-specific action renderer and preserves explicit header-only controls. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3877338427ab. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (15 earlier review cycles; latest 8 shown)
|
dbf15d8 to
7b474c6
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
7b474c6 to
1434c15
Compare
1434c15 to
1eca77b
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
1eca77b to
6e71891
Compare
|
@clawsweeper re-review Exact head
Focused tests, the complete changed-file gate, desktop/mobile Chromium proof, and fresh local/full-branch autoreview are green. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Exact head
Focused tests, the complete changed-file gate, desktop/mobile Chromium proof, targeted full oxlint, and fresh local/full-branch autoreview are green. The new regressions live in the dedicated session-menu boundary suite so the original pane test remains below the repository's max-lines limit. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head
Focused tests, the complete changed-file gate, desktop/mobile Chromium proof, targeted full oxlint, exact |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head
Focused tests, the complete changed-file gate, desktop/mobile Chromium proof, targeted full oxlint, exact |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head
Focused tests, the complete changed-file gate, desktop/mobile Chromium proof, targeted full oxlint, exact |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Tak Hoffman <[email protected]>
|
@clawsweeper re-review Exact head
Focused tests, the complete changed-file gate, desktop/mobile Chromium proof, targeted full oxlint, production UI build, and fresh full-branch autoreview are green. The new regressions live in the dedicated session-menu boundary suite so the original pane test remains below the repository's max-lines limit. The conflict-free current-main rebase retains 493 bytes of startup-budget margin. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready verification for
ClawSweeper rank-up moves: exact-head required checks are green. The protected-label decision is satisfied for this maintainer-requested landing: no changed path has a restricted/security CODEOWNER, and the live Known proof gaps: none. |
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where users managing the current chat session from the top-right header menu could not pin it, mark it unread, set its icon, copy its session ID, or move it to a group even though those actions were available from the sidebar.
Why This Change Was Made
The sidebar and chat header now compose one canonical session-management presenter for action IDs, labels, shortcuts, enablement, compact drill-downs, and selection handling. Pane-specific Panels, Layout, View, status, and Continue in terminal controls remain owned by the header, while shared mutations route through the existing session organizer operations.
Both surfaces also consume one canonical group collector. It merges the Gateway group catalog with groups already observed on session rows, so the header's Move to group submenu does not lose newly observed groups while the catalog catches up.
Every newly shared header patch re-resolves the current row at its mutation boundary. If a no-ID row was deleted while the lazy operation or group-catalog write was in flight, pin, unread, icon, existing-group, remove-from-group, and new-group actions skip the patch and show a visible retry outcome instead of recreating the removed session. Durable-ID rows retain their captured-row fallback because the Gateway enforces
expectedSessionId.Child-session gating now uses the canonical navigation-parent relation, so both
parentSessionKeyforks andspawnedBychildren receive the same action restrictions as the sidebar.This makes common session actions appear on both surfaces by default. Intentional surface-only actions stay explicit in the two wrappers instead of requiring divergent action renderers and dispatch contracts.
User Impact
Desktop and mobile users can perform the full single-session management flow from the chat header: Pin/Unpin, Mark unread/read, Rename, Assign owner, Set icon, Fork, Copy session ID, Move to group, Archive/Restore, and Delete.
Evidence
main.Desktop
Mobile