Repository navigation
fix(ui): show menus for child sessions in the sidebar - #125033
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 3:55 PM ET / 19:55 UTC. ClawSweeper reviewWhat this changesThis PR lets Control UI operators open the existing session menu from child-session sidebar rows while hiding Pin and Move to group actions that only apply to root placement. Merge readinessKeep open for protected maintainer handling. No blocking patch defect found: current main still suppresses child-row menu entry points, while this branch routes them through the shared owner and omits lineage-incompatible placement actions; exact-head CI is still incomplete. Likely related people: Peter Steinberger (high confidence, recent sidebar/menu source owner). Priority: P2 Review scores
Verification
How this fits togetherThe Control UI sidebar renders agent session trees and sends row interactions to a shared session-menu controller. The menu then maps permitted actions to session-management operations such as rename, archive, delete, and fork. flowchart LR
A[Session tree data] --> B[Sidebar child row]
B --> C[Shared session menu controller]
C --> D{Child or root session}
D --> E[Allowed menu actions]
E --> F[Session management operations]
Decision needed
Why: The PR carries the protected maintainer label and changes a visible Control UI management flow, so final acceptance requires an explicit owner decision. Before merge
Agent review detailsSecurityNone. PR surfaceSource +17, Tests +41. Total +58 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one shared session-menu path, with child placement constraints expressed as the isChild action predicate, then land after exact-head CI and protected maintainer review succeed. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main excludes child rows from both sidebar menu triggers and menu controls, while the branch’s focused browser test exercises the restored row-to-menu path. Is this the best way to solve the issue? Yes. Reusing the existing menu controller and action-access checks avoids a second child-only action implementation; the child predicate cleanly preserves lineage-owned placement rules. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 29fc91fe99d8. 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 (3 earlier review cycles) |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer review is complete for The root cause was the child-row renderer suppressing both menu events and the action container. The fix restores the canonical menu path, then omits only lineage-incompatible placement actions (Pin and grouping) inside the shared menu owner. Provenance traces the exclusion to #108838; this repair was reported by @vyctorbrzezowski. Validation:
The 4 GB remote changed-check workers were resource-terminated in Knip and core test typecheck without source diagnostics; both exact lanes passed on the prepared host, and exact-head CI plus the native prepare gate are green. No proof gap remains. Ready for the guarded merge. |
|
Merged via squash.
|
* fix(ui): add child session sidebar menus * fix(ui): tailor child session menus * test(ui): align child session menu expectations --------- Co-authored-by: ClawSweeper <[email protected]>
What Problem This Solves
Fixes an issue where users managing spawned/child sessions from the Control UI sidebar had no row menu or context-menu access. Operators had to open the child chat first and then use its header menu to rename, archive, delete, or otherwise manage the session.
Reported by @vyctorbrzezowski.
Why This Change Was Made
Child rows now use the existing session-menu owner and access checks for mouse, keyboard context-menu, and right-click entry points. The menu also respects the child-session contract: Pin and Move to group are omitted because root sidebar placement is controlled by lineage for child sessions, while session-level actions remain available.
User Impact
Operators can manage subagent and other child sessions directly where they appear in the sidebar. The coherent child menu offers Mark as unread, Rename, Set icon, Fork, Archive, and Delete, plus applicable worktree or cloud-worker actions. It does not offer root-only Pin or grouping controls.
Evidence
Before
Expanded child rows had status/runtime information but no menu affordance.
After
The completed
Verify testschild exposes the child-specific session menu directly from the sidebar. Pin and Move to group are absent because lineage owns child placement.Validation
session-management.sidebar.e2e.test.ts: 11/11 passed with a fresh dark-theme screenshot capture.session-menu.test.ts: 39/39 passed, including an exact child action-set regression.app-sidebar.test.ts+session-menu.test.ts: 302/302 passed at the final head.Production LOC: +62/-48 (net +14) | Tests and test support: +48/-4.