Skip to content

fix(ui): prevent clipped keyboard focus rings on tool summaries - #149002

Merged
RomneyDa merged 2 commits into
mainfrom
openclaw/fix-tool-summary-focus-ring
Sep 19, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
openclaw/fix-tool-summary-focus-ring

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Before/after screenshots show the repaired outline in the production Control UI with a mocked Gateway. The CSS is unchanged from that capture.
  • Verified keyboard focus and expand/collapse at narrow and wide widths during development. The dedicated pixel-scanning E2E test was removed to keep this small CSS change proportional; no new test suite is included.
  • CSS stylelint, formatting, and git diff --check passed after the removal. Earlier development validation included 12 selected E2E tests on the unchanged CSS.
  • Rebased to include the upstream provider-assertion fix (fix(test): distinguish model readiness from account health #149035) and stream-fixture settling fix (improve(ui): smooth new messages and chat scrolling #148447). All three affected E2E files pass on 20d84a597547994cdf7d5af49ba429edc3ba7087: 25/25 tests, with every runtime budget unchanged. The PR remains CSS-only.
  • Browser proof covers Chromium with a mocked Gateway, not a live Gateway.

Before

Before: the top of the tool-summary focus ring is clipped

After

After: the complete tool-summary focus ring is visible

Worked on by: @RomneyDa

Work sessions


View the OpenClaw team session

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 15, 2026 10:26
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added 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. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 1:25 AM ET / 05:25 UTC (Revision 5).

ClawSweeper review

What this changes

The 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
Reviewed head: 20d84a597547994cdf7d5af49ba429edc3ba7087

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable CSS repair with convincing visible proof and no blocking findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the production Control UI tool-summary outline changing from clipped to complete in Chromium with a mocked Gateway, directly demonstrating the changed row-painting behavior. Originating-chat delivery was not independently inspected in this read-only review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after screenshots show the production Control UI tool-summary outline changing from clipped to complete in Chromium with a mocked Gateway, directly demonstrating the changed row-painting behavior. Originating-chat delivery was not independently inspected in this read-only review.
Evidence reviewed 8 items Verified introduced change: The pinned base-to-head diff adds only the focused-row content-visibility override and its explanatory comment. The read-only diff whitespace check passed.
Current main still needs the fix: Current main retains content-visibility:auto on transcript rows without the general focus-within exception. Its measurement exception serves message jumps; the separate widget-preview exception does not cover ordinary tool-summary buttons.
Released source check: The supplied latest release, v2026.9.4, also applies automatic content visibility without a focused-row exception.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source +7. Total +7 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 7 0 +7
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 7 0 +7

Review metrics

None.

Technical review

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

Labels

Label justifications:

  • P2: Clipped keyboard focus indicators are an established accessibility defect with a limited UI blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after screenshots show the production Control UI tool-summary outline changing from clipped to complete in Chromium with a mocked Gateway, directly demonstrating the changed row-painting behavior. Originating-chat delivery was not independently inspected in this read-only review.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots show the production Control UI tool-summary outline changing from clipped to complete in Chromium with a mocked Gateway, directly demonstrating the changed row-painting behavior. Originating-chat delivery was not independently inspected in this read-only review.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots show the production Control UI tool-summary outline changing from clipped to complete in Chromium with a mocked Gateway, directly demonstrating the changed row-painting behavior. Originating-chat delivery was not independently inspected in this read-only review.

Evidence

What I checked:

  • Verified introduced change: The pinned base-to-head diff adds only the focused-row content-visibility override and its explanatory comment. The read-only diff whitespace check passed. (ui/src/styles/chat/layout.css:649, 20d84a597547)
  • Current main still needs the fix: Current main retains content-visibility:auto on transcript rows without the general focus-within exception. Its measurement exception serves message jumps; the separate widget-preview exception does not cover ordinary tool-summary buttons. (ui/src/styles/chat/layout.css:642, b202de22f34c)
  • Released source check: The supplied latest release, v2026.9.4, also applies automatic content visibility without a focused-row exception. (ui/src/styles/chat/layout.css:647, 3a9d69db306c)
  • Focus indicator and rendering owner: Tool disclosure controls already request a two-pixel outline with a two-pixel offset. The transcript renderer places these controls inside chat-virtual-row elements, so removing paint containment on the focused ancestor addresses the clipping without changing control behavior. (ui/src/styles/chat/tool-cards.css:31, 20d84a597547)
  • Inspected before and after proof: Inspected both downloaded PR-body images identified by the media manifest. The before image visibly clips the top and left edges around “Ran 6 commands”; the after image shows the complete outline. The supplied body identifies production Control UI rendering in Chromium with a mocked Gateway and states that the captured CSS is unchanged. This establishes the visible CSS result, not live Gateway operation. (20d84a597547)
  • Re-review continuity: The earlier reviewed revision contains the same focused-row rule. The supplied completed review has no findings or published rank-up moves. Direct local comparison lacked the earlier object, so its relevant source was inspected through GitHub instead. (ui/src/styles/chat/layout.css:652, f81e3ce2a6bf)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-15T10:32:37.475Z sha 1b99ff1f990aa9a5aac9ebeaa57e1ec063bb2806 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T11:42:10.292Z sha 6a2f7e84a7eb09b98adcdba9f6537d341cb2558b :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T11:49:36.979Z sha ac4b7f8 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-18T05:05:52.085Z sha f81e3ce2a6bfdab019acccdab2c0bdb21c2883be :: needs maintainer review before merge. :: none

@roboclaw-bot
roboclaw-bot force-pushed the openclaw/fix-tool-summary-focus-ring branch from 6a2f7e8 to ac4b7f8 Compare September 15, 2026 11:43
@fuller-stack-dev fuller-stack-dev self-assigned this Sep 18, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/fix-tool-summary-focus-ring branch from ac4b7f8 to f81e3ce Compare September 18, 2026 04:58
roboclaw-bot and others added 2 commits September 18, 2026 05:18
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]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/fix-tool-summary-focus-ring branch from f81e3ce to 20d84a5 Compare September 18, 2026 05:19
@RomneyDa
RomneyDa merged commit 02f0087 into main Sep 19, 2026
89 checks passed
@RomneyDa
RomneyDa deleted the openclaw/fix-tool-summary-focus-ring branch September 19, 2026 22:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 20, 2026
…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]>
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 maintainer Maintainer-authored PR 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: XS 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.

3 participants