Repository navigation
fix(ui): restore lint for chat suggestion dismissal - #208159
Conversation
Keep the pane responsible for deciding when to hide a suggestion. Let the Solid tray move focus through its keyed summary refs before the focused row disappears. Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 18621df4-9113-4261-9213-112561ef7516
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesMoves dismissal focus handling from pane-wide DOM queries to Solid-owned suggestion refs. Example: A moderator dismisses Alice’s last pending suggestion.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — suspected predecessor, not a causality claim: source commit Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR repairs a current-main controller-guard failure while preserving dismissal behavior; no actionable defects found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI suggestion tray presents Gateway-owned suggestions, sends moderator actions through the chat pane, and manages keyboard focus around row removal. flowchart LR
Moderator --> Tray[Solid suggestion tray]
Tray --> Pane[Chat pane dismissal owner]
Pane --> Gateway
Gateway --> Pane
Pane --> Tray
Tray --> Composer[Composer focus helper]
Technical reviewBest possible solution: Keep pending-dismissal decisions in the pane and keyboard focus in the Solid tray, using the existing composer focus helper. Do we have a high-confidence way to reproduce the issue? Current-main queries necessarily reach the guard’s forbidden-query branch, matching the linked report’s failure trace; this review did not execute the guard. Is this the best way to solve the issue? The change follows the existing Solid ownership contract, removes the replaced helper, and preserves the pane’s dismissal and recovery decisions without weakening enforcement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d68b6d92c963. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +12, Tests +6. Total +18 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 29, 2026, 3:50 AM ET / 08:50 UTC. |
Merge main containing e0cdb71 (#208159), which removes the inherited chat-suggestion DOM queries rejected by check-lint. The Settings creator-label diff is unchanged. Co-authored-by: vyctorbrzezowski <[email protected]>
Move keyboard focus through the suggestion tray's rendered summary refs when the pane hides a dismissed row. Preserve the author's receipt and the composer's focus on rejection. Cover focus returning to the composer after the last dismissal. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 18621df4-9113-4261-9213-112561ef7516
Related: #208093. Follow-up to #207792.
What Problem This Solves
Chat UI changes can fail
check-linton main even when they do not change suggestion dismissal. The controller guard rejects three DOM queries that the chat pane uses to decide where keyboard focus goes when a moderator dismisses a suggestion.User Impact
There is no intended change for moderators. A dismissed suggestion disappears before the Gateway replies. Keyboard review continues at the next visible suggestion, then the previous one if there is no next row, or the composer if the tray is empty. A rejected dismissal restores the suggestion without taking focus from a newer draft.
Why This Change Was Made
I kept the decision to hide a row in the pane, where the pending request and author receipt are already tracked. When a focused row is about to be hidden, its Solid component now uses refs to the summaries it actually rendered. The last-row case uses the shared composer focus helper. This removes the pane-wide DOM search without changing the guard, its allowlist, or its baselines.
Evidence
I ran
node --import ./scripts/tsx.mjs scripts/check-control-ui-controllers.mtson AWS. Main atda10129bea36failed withquerySelector is not allowed hereatchat-pane-shared.ts:236,:241, and:242. The same command passed on the fix:Control UI controller guard OK.I matched all five tested Git blobs to7e35b3e64fee.The focused production Control UI Chromium E2E passed (1 selected, 11 skipped by name filter). With the Gateway reply held, dismiss removed the row and focused the next summary, which Enter could open. Rejecting the request restored the row in order without replacing the newer draft or taking its focus. A successful retry kept the row gone, sent no chat message, and dismissing the last row returned focus to the composer. The test used synthetic Gateway responses, not a live multi-user session. Formatting and
git diff --checkpassed. I did not run the full suite.Requested and co-authored by @daniel-lxs.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw