Repository navigation
fix(ui): prevent clipped keyboard focus rings on tool summaries - #149002
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 18, 2026, 1:25 AM ET / 05:25 UTC (Revision 5). ClawSweeper reviewWhat this changesThe PR lets focused chat transcript rows display complete keyboard focus rings while preserving offscreen rendering optimizations for other rows. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, narrowly scoped accessibility fix absent from current main. The inspected screenshots demonstrate the improvement, and no actionable patch defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI renders conversation messages and tool summaries inside virtualized transcript rows. Row styling controls whether keyboard focus indicators can paint beyond those rows. flowchart TD
A[Conversation and tool results] --> B[Virtualized transcript rows]
B --> C{Row contains focus?}
C -->|Yes| D[Allow full painting]
C -->|No| E[Retain automatic rendering skips]
D --> F[Complete keyboard focus ring]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +7. Total +7 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the focus exception at the transcript-row styling owner so existing disclosure outlines remain visible without disabling virtualization optimizations globally. Do we have a high-confidence way to reproduce the issue? Yes: keyboard-focus a tool summary at a virtual transcript row boundary; current source explains the clipping and the inspected before screenshot shows it. This read-only review did not execute the UI. Is this the best way to solve the issue? Yes: the focused-ancestor CSS override addresses paint containment directly and preserves the existing outline, measurement rules, and unfocused-row optimization. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b202de22f34c. 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)
|
6a2f7e8 to
ac4b7f8
Compare
ac4b7f8 to
f81e3ce
Compare
Let focused virtual transcript rows paint outside their bounds without disabling offscreen layout skipping for other rows. Cover actual top-outline pixels and keyboard toggling in collapsed, expanded, and completed-work states at narrow and wide viewports. Co-authored-by: RomneyDa <[email protected]>
Keep the scoped CSS fix and existing visual proof without a dedicated pixel-scanning E2E suite. Co-authored-by: RomneyDa <[email protected]>
f81e3ce to
20d84a5
Compare
…claw#149002) * fix(ui): keep tool summary keyboard focus rings visible Let focused virtual transcript rows paint outside their bounds without disabling offscreen layout skipping for other rows. Cover actual top-outline pixels and keyboard toggling in collapsed, expanded, and completed-work states at narrow and wide viewports. Co-authored-by: RomneyDa <[email protected]> * test(ui): remove oversized focus-ring pixel test Keep the scoped CSS fix and existing visual proof without a dedicated pixel-scanning E2E suite. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Fixes: the keyboard focus outline is clipped when a tool-call summary sits at the top of a transcript row.
User Impact
Keyboard users can see the complete focus ring around summaries such as “Ran 6 commands,” including while expanding and collapsing them. No configuration or migration is required.
Why This Change Was Made
Allow the row containing keyboard focus to paint the full outline, while retaining offscreen rendering optimizations for other transcript rows.
Evidence
git diff --checkpassed after the removal. Earlier development validation included 12 selected E2E tests on the unchanged CSS.20d84a597547994cdf7d5af49ba429edc3ba7087: 25/25 tests, with every runtime budget unchanged. The PR remains CSS-only.Before
After
Worked on by: @RomneyDa
Work sessions
View the OpenClaw team session