Repository navigation
fix(ui): prevent archives after sidebar child removal - #189906
Conversation
Keep Archive clear of the removed disclosure target and cover repeated pointer input through the existing deletion E2E suite. Co-authored-by: alkor2000 <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review Credited replacement for #167670. Final local autoreview is scoped-clean at P0–P2; the saved-coordinate regression is red on main and green after the CSS repair. The PR body contains current proof and inspected before/after screenshots. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR keeps desktop Archive controls outside the former child-disclosure position after the last child disappears. Example: The last child of “Parent conversation” disappears while the pointer remains over its disclosure slot.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it provides a focused repair for a current sidebar hit-target bug, preserves Archive and Undo behavior, and has no actionable findings; exact-head CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway roster updates supply child membership, the sidebar renderer conditionally mounts disclosures, and shared CSS determines which session control receives pointer input. flowchart LR
A[Gateway roster update] --> B[Sidebar session projection]
B --> C[Row and disclosure DOM]
C --> D[Shared layout CSS]
D --> E[Pointer target]
E --> F[Session action request]
Technical reviewBest possible solution: Land the existing CSS repair and saved-coordinate regression while preserving direct Archive, Undo, and resting title width. Do we have a high-confidence way to reproduce the issue? Current-main CSS and conditional disclosure rendering establish the target swap, supported by supplied red-on-base browser evidence; no reviewer-run execution was performed. Is this the best way to solve the issue? The existing CSS owner can stabilize the action position directly, avoiding runtime bookkeeping or a change to archive policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cde4bfe4f10c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -1, Tests +54, Other +2. Total +55 across 3 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 31, 2026, 8:57 PM ET / November 1, 2026, 00:57 UTC. |
|
Merged via squash.
|
Keep Archive clear of the removed disclosure target and cover repeated pointer input through the existing deletion E2E suite. Co-authored-by: alkor2000 <[email protected]>
Supersedes #167670, thanks @alkor2000.
Closes #167415.
What Problem This Solves
Fixes accidental archives when the last sidebar child disappears and a user clicks again at the disclosure's former position.
User Impact
Desktop pointer users can repeat a disclosure click without unexpectedly archiving its parent. Intentional Archive and Undo keep their existing behavior. No configuration or migration is required.
Why This Change Was Made
Keep the existing action overlay left of the disclosure slot even after that disclosure disappears, reserving title clearance only while hover/focus actions are visible. The rule applies to fine-pointer rows with Archive and leaves mobile, coarse-pointer, team, and catalog-menu placement with their existing owners.
The simplification pass consolidates duplicate overlay positioning and three identical title-clearance declarations, and removes redundant flex/alignment declarations in that same owner. Production delta: −1 line. Regression delta: +54 lines, with an exactly matching separate test-line allocation; the shared ceiling is unchanged.
Evidence
87c491fb7cc4c0336e195885e617b48da886161b; the affected CSS and row renderer also match fetched maine515a095c5b5. The new saved-coordinate regression fails on the actual mouse target and records one unintended parent archive RPC (4.71 s).870ee1b59c6483d92c1b9cf198d3ea0598037ad6, including Control UI, UI E2E, performance, lint, security, and ratchet checks. An initial lint invocation selected unnecessary extension declaration preparation and was stopped by its timeout; the correct source-owned lint configuration passes.87c491fb7cc4, including the unchanged row renderer and sibling styles, reports scoped-clean at P0–P2, with no actionable findings. The reviewer did not execute tests; runtime results above are separate.The contributor branch was read only through
gh pr viewandgh pr diff; it was never checked out, installed, built, or executed. Human commit credit is preserved asCo-authored-by: alkor2000 <[email protected]>.