Repository navigation
feat(ui): replace sidebar session menu button with Archive - #154144
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 9:20 PM ET / September 21, 2026, 01:20 UTC (Revision 5). ClawSweeper reviewWhat this changesThe PR adds direct Archive and Restore controls to sidebar session rows, preserves touch and keyboard menus, repairs focus restoration, and includes shared test-worker cleanup. Merge readiness✅ Ready for maintainer review The sidebar improvement remains absent from current main and the latest release. All prior findings are addressed, and this review found no remaining blocking defects. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI sidebar displays sessions supplied by the Gateway. Its row controls invoke existing session operations, which manage permission checks, archive state, visible recovery, and Undo. flowchart LR
A[Gateway session roster] --> B[Sidebar session rows]
B --> C[Archive or Restore]
B --> D[Touch or keyboard menu]
C --> E[Existing session operations]
D --> E
E --> F[Gateway permission and identity checks]
F --> G[Updated roster and Undo]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +57, Tests +42, Docs 0. Total +99 across 43 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep direct Archive and Restore controls backed by the existing session owner, with accessible menus and Undo preserved. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a UI interaction improvement; current-main source and the before screenshot establish the existing ellipsis control. Is this the best way to solve the issue? Yes. Reusing existing archive, restore, access, and Undo operations avoids a competing state owner while retaining touch and keyboard access. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a667c541c1eb. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
30d7e6b to
95d24e7
Compare
|
@clawsweeper re-review Fixed keyboard-hovercard self-dismissal by checking mounted menus, preserved a touch-only menu button, and restored actual tap coverage for touch entry. All 491 component tests and 42 mocked browser tests pass. Rebased to include the merged filesystem fixture repair in #154120; updated CI is attached to the new head. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Resolved the remaining owner-assignment assertion in dbb27f467f3: Escape now verifies the menu is removed and focus returns to the row link, then retains keyboard reopen/self-assignment proof. All 12 tests in that file pass (29.70s), and independent review of this test-only correction is clean. Production code is unchanged from the prior review. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Retire the shared read-pool generation alongside its SQLite lifecycle owner so later files register cleanup with their current owner. Extend the existing ordered SQLite runner fixture to prove the next file drains its own pool.
Keep full actions available through row context menus and keyboard shortcuts. Reuse archive/restore operations with Undo, access checks, and protected-session policy.
Detect mounted session menus instead of borrowing the hovercard expansion state. Keep a coarse-pointer menu button and exercise actual touch input. Correct the archive-action fixture capability.
dbb27f4 to
aa68608
Compare
|
@clawsweeper re-review Fixed closed-menu catalog adoption focus: restoration uses the original control when present, otherwise the replacement row link. The regression fails before the fix; 40 focused lifecycle/controller/reorder tests pass, and independent review is clean. All prior UI CI shards and the real-Gateway lane passed. The branch also includes the independently reviewed test-worker cleanup dependency #154214 for the remaining backend CI failure; that PR lands first. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Merged via squash.
|
…154144) * fix(test): retire shared state readers between files Retire the shared read-pool generation alongside its SQLite lifecycle owner so later files register cleanup with their current owner. Extend the existing ordered SQLite runner fixture to prove the next file drains its own pool. * feat(ui): replace sidebar session menu button with archive Keep full actions available through row context menus and keyboard shortcuts. Reuse archive/restore operations with Undo, access checks, and protected-session policy. * fix(ui): preserve touch menus and keyboard hovercards Detect mounted session menus instead of borrowing the hovercard expansion state. Keep a coarse-pointer menu button and exercise actual touch input. Correct the archive-action fixture capability. * test(ui): assert context menu dismissal at its owner * fix(ui): retain focus when catalog rows are adopted
What Problem This Solves
Desktop sidebar rows spend an action on an ellipsis even though the full session menu is already available by right-clicking.
User Impact
Native session rows now show Archive beside Pin; archived rows show Restore. Right-click, Shift+F10, and the Menu key open the full menu. Touch devices retain a separate tappable menu button. Archive preserves the open conversation and offers Undo, with existing permissions and protected-session checks intact.
Why This Change Was Made
Use the existing archive/restore operation for the common row action. Menu state stays separate from hovercard accessibility state, and focus returns to a valid row control when a catalog session is adopted. Catalog-only rows and the Sessions table retain their existing controls.
Evidence
aa68608e8ade254fef1188e9eb9cf885de53a032, including all 13 browser shards, three UI component shards, and the real-Gateway lane. Fresh review has no remaining findings.Measured test cost and CI repairs
The sidebar/hovercard component run took 44.15s wall with one worker. Full browser-file test times: hovercard 13.89s; navigation 6.40s; identity links 16.50s; trailing indicators 9.70s; sidebar 29.70s; native catalog 6.58s; mobile 5.28s; invitation interactions 39.32s. Owner assignment passed all 12 cases in 29.70s wall. Catalog lifecycle/controller coverage passed 39 cases in 5.91s; the existing reorder-focus sibling passed in 5.46s. The new closed-menu adoption case took 47ms and failed before its repair. The longer existing browser compositions exercise viewport, input, and Gateway event boundaries.
Full CI exposed a keyboard-hovercard regression: the row link's hovercard and menu shared aria-expanded. The final code detects actual mounted menu elements and leaves the link's ARIA with its hovercard owner. A stale owner-assignment assertion now checks actual menu removal and restored focus after Escape. Catalog adoption also preserves focus when its old, closed menu button disappears. Touch tests use actual taps instead of a right-click substitute.
An archive-action fixture lacked sessions.patch capability, so its Archive button was correctly unfocusable; the fixture now advertises the operation it exercises. The unrelated Claw close-error test inherited explicit native-mode state from an earlier installer test; this branch includes the merged owner repair #154120. A later main-branch worker mock leaked into workspace-read tests; #154214 fixes the shared test-generation cleanup. Failed jobs were diagnosed, not rerun to obtain green.
The local real-Gateway fixture lacked built plugin SDK artifacts, so hosted built-artifact CI supplied that proof. The generic synthetic preview's archive fixture returns an identity error; dedicated mock-Gateway tests verify successful archive/restore requests and visible outcomes.
Before:
After:
Touch layout: