Skip to content

fix(ui): prevent archives after sidebar child removal - #189906

Merged
roboclaw-bot merged 1 commit into
mainfrom
loop/contributor-pr-167670
Nov 1, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
loop/contributor-pr-167670

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Reproduced on main 87c491fb7cc4c0336e195885e617b48da886161b; the affected CSS and row renderer also match fetched main e515a095c5b5. The new saved-coordinate regression fails on the actual mouse target and records one unintended parent archive RPC (4.71 s).
  • With the fix, the vacated coordinate is outside Archive and sends zero archive RPCs. Clicking the visible Archive button afterward still sends the expected request. All five deletion-suite cases pass; the isolated source-UI suite takes about 20 s. It also covers offline deletion/archive consent, draft retirement, and rejected deletion.
  • Focused UI E2E typecheck, type-aware lint of the changed test, stylesheet lint, formatting, whitespace, and the test-line ratchet pass. Broad CI run 41258688176 passed on exact head 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.
  • Independent local autoreview of the complete final local change against 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.
  • Screenshots below are inspected synthetic fixtures captured after child removal, before the repeated click. Browser proof uses the existing Control UI source-server/mock-Gateway harness with installed Chromium headless-shell. It does not certify WebKit, physical touch hardware, or a deployed Team Gateway.

The contributor branch was read only through gh pr view and gh pr diff; it was never checked out, installed, built, or executed. Human commit credit is preserved as Co-authored-by: alkor2000 <[email protected]>.

Before: Archive occupies the removed disclosure position

After: Archive remains left of the empty disclosure position

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]>
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 00:52
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@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.

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Archive moves into the vacated slot, so another click can archive the parent.
  • After: Archive stays to the left, and clicking the former disclosure position does not archive the parent.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused CSS repair with directly inspected visual evidence, a meaningful browser regression, and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the changed CSS geometry in the real Control UI running in Chromium with synthetic Gateway fixtures; the accompanying saved-coordinate run records recovery from one unintended archive request to zero, followed by successful intentional Archive.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Another click at a removed child disclosure can unexpectedly archive its parent.
Reason: The maintainer-authored repair prevents a demonstrated unintended action while retaining the established interaction design.

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
Reviewed head: 870ee1b59c6483d92c1b9cf198d3ea0598037ad6

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway 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]
Loading

Technical review

Best 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

  • Conditional overlay positioning and resting title width changes intended behavior with a stated reason (8ff1512: Give resting titles full width while positioning surfaced actions beside an existing disclosure; the PR explains why that offset must survive disclosure removal.)
  • Hover title clearance keeps the original intent (e9dfe8a: Reserve title-line space for actions through shared CSS rather than additional lifecycle machinery; consolidation retains the same declarations.)
  • Child overlay styling keeps the original intent (a1d62cf: Keep child rows aligned with the calmer sidebar grid; shared declarations replace duplicates while child-specific positioning remains.)
  • Single-line action alignment keeps the original intent (9b43f1c: Collapse rows without previews so the endcap rides beside the title; the removed alignment declaration remains supplied by session-row-aside.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source -1, Tests +54, Other +2. Total +55 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 19 20 -1
Tests 1 54 0 +54
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 3 75 20 +55

Review metrics

Metric Value Why it matters
Production versus test growth Production −1 net line; regression tests +54 lines The regression needs real browser layout and pointer hit-testing and reuses existing fixtures without adding production state or test hooks.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #167415
Summary: This PR repairs the disclosure-removal target swap and explicitly replaces the earlier contributor repair.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: Unexpected reversible archiving disrupts a bounded sidebar interaction, with an existing Undo path.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Unexpected reversible archiving disrupts a bounded sidebar interaction, with an existing Undo path.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 8:57 PM ET / November 1, 2026, 00:57 UTC.

@roboclaw-bot
roboclaw-bot merged commit 04d6904 into main Nov 1, 2026
172 of 173 checks passed
@roboclaw-bot
roboclaw-bot deleted the loop/contributor-pr-167670 branch November 1, 2026 01:10
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: sidebar rows: expand/open and one-click Archive swap the same spot across hover states; overclick archives the session

1 participant