Skip to content

fix(ui): keep inline-code punctuation attached - #122291

Merged
vyctorbrzezowski merged 3 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/control-ui-inline-code-punctuation
Aug 11, 2026
Merged

vyctorbrzezowski merged 3 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/control-ui-inline-code-punctuation

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

Closes #122275

Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

Fixes an issue where users reading Control UI chat transcripts would see periods and semicolons visually detached from an immediately preceding inline-code chip.

Why This Change Was Made

In this PR, the inline-code chip uses a smaller horizontal and vertical inset so adjacent punctuation stays with the sentence and the chip stays closer to the prose line box. The existing file-link exclusion remains unchanged.

User Impact

Inline code followed by punctuation reads naturally in both light and dark themes, without changing code-chip colors, borders, wrapping, or file-link presentation.

Evidence

Theme Before In this PR
Dark Inline-code punctuation before in dark mode Inline-code punctuation after in dark mode
Light Inline-code punctuation before in light mode Inline-code punctuation after in light mode

Browser geometry at the default text scale:

  • code-text-to-punctuation gap: 5.40625px before → 3.515625px in this PR
  • chip-to-prose height delta: 3.75px before → 2.5px in this PR

Focused validation:

node scripts/run-vitest.mjs ui/src/pages/chat/chat-responsive.browser.test.ts -t "inline code"
Test Files  1 passed (1)
Tests       4 passed | 77 skipped (81)

Formatting check passed for both changed files. Production delta is net-zero (1+ / 1-); test coverage adds 45 lines.

@clawsweeper

clawsweeper Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 11, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 11, 2026 21:43
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 11, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 6:00 PM ET / 22:00 UTC.

ClawSweeper review

What this changes

The PR reduces inline-code chip padding in Control UI chat text and adds browser-layout coverage for punctuation that immediately follows inline code.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No blocking findings. Current main still uses the larger inline-code padding, and this PR changes the owning stylesheet rule with focused browser geometry coverage.

Priority: P3
Reviewed head: 05792361848c7aafd375b6cb9943b7f2e9e8ca66

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with direct visual and geometry evidence; normal exact-head CI remains before merge.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR body provides dark- and light-theme before/after screenshots, measured browser geometry, and focused after-fix browser-test output.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR body provides dark- and light-theme before/after screenshots, measured browser geometry, and focused after-fix browser-test output.
Evidence reviewed 6 items Current owner rule: Current main paints ordinary inline code with padding: 0.15em 0.35em; the right inset is the source of the visible space before an adjacent punctuation text node.
Transcript rendering path: Assistant Markdown is sanitized into the .chat-text container, so the stylesheet rule is the correct presentation owner rather than the Markdown parser.
File-link sibling protection: Existing browser coverage verifies that file-link code remains unpainted while ordinary code keeps the chip; the PR leaves the exclusion selector intact.
Findings None None.
Security None None.

How this fits together

Control UI renders transcript Markdown into .chat-text browser content, where the chat stylesheet paints inline-code chips. The rule affects the visible spacing between code glyphs and adjacent sentence punctuation.

flowchart LR
A[Transcript Markdown] --> B[Sanitized inline code]
B --> C[Chat text container]
C --> D[Inline-code stylesheet]
D --> E[Browser layout]
E --> F[Visible punctuation spacing]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed because this PR already owns the bounded fix; only routine review and exact-head CI remain.
Agent review details

Security

None.

PR surface

Source 0, Tests +45. Total +45 across 2 files.

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

Review metrics

Metric Value Why it matters
Production vs test LOC production +1/-1 (net 0); tests +45/-0 The repair remains net-neutral in the owning stylesheet while adding a focused browser regression.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #122275
Summary: This PR is the bounded candidate repair for the linked Control UI inline-code punctuation-spacing report.

Members:

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

Technical review

Best possible solution:

Keep the single owner-rule adjustment and its browser geometry regression coverage, then merge after exact-head checks complete.

Do we have a high-confidence way to reproduce the issue?

Yes—source-reproducible: current main’s inline-code rule adds the right inset, and the PR’s browser fixture measures the resulting gap for adjacent punctuation.

Is this the best way to solve the issue?

Yes—the stylesheet rule owns the spacing, so tightening that one rule is safer than changing Markdown output or adding punctuation-specific markup.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 459c70e14a2c.

Labels

Label changes:

  • add P3: This is a contained Control UI readability repair with no functional, security, or compatibility impact.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides dark- and light-theme before/after screenshots, measured browser geometry, and focused after-fix browser-test output.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body provides dark- and light-theme before/after screenshots, measured browser geometry, and focused after-fix browser-test output.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body provides dark- and light-theme before/after screenshots, measured browser geometry, and focused after-fix browser-test output.

Label justifications:

  • P3: This is a contained Control UI readability repair with no functional, security, or compatibility impact.
  • 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): The PR body provides dark- and light-theme before/after screenshots, measured browser geometry, and focused after-fix browser-test output.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides dark- and light-theme before/after screenshots, measured browser geometry, and focused after-fix browser-test output.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body provides dark- and light-theme before/after screenshots, measured browser geometry, and focused after-fix browser-test output.

Evidence

What I checked:

Likely related people:

  • vyctorbrzezowski: Authored recent current-main work touching the affected chat-text stylesheet. (role: recent area contributor; confidence: medium; commits: ce466fccb0c5; files: ui/src/styles/chat/text.css)

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.

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Pre-merge review complete for 05792361848c7aafd375b6cb9943b7f2e9e8ca66.

  • No actionable findings remain; sequential branch review passes completed cleanly.
  • ClawSweeper published no Rank-up moves. Its routine exact-head CI step is complete.
  • Focused browser proof: 4 inline-code geometry cases passed across light and dark themes; file-link code remains excluded.
  • Exact-head CI: openclaw/ci-gate passed.
  • Production/test LOC delta: net 0 / +45.

Ready for the native landing flow.

@vyctorbrzezowski
vyctorbrzezowski merged commit 67262b7 into openclaw:main Aug 11, 2026
85 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/control-ui-inline-code-punctuation branch August 11, 2026 22:30
vincentkoc added a commit that referenced this pull request Aug 11, 2026
* origin/main: (1725 commits)
  fix(agents): preserve reply cleanup when cancellation throws (#122252)
  fix(ui): render disallowed link schemes as plain text (#122311)
  fix(test): isolate gateway helper env stubs (#122319)
  fix(ui): keep chat Markdown block rhythm consistent (#122289)
  test(cli): trim duplicate Hooks process cases (#122278)
  fix(ui): retain identity while agent roster loads
  fix(ui): preserve configured agent labels
  fix(plugins): keep startup convergence read-only (#122330)
  fix: preserve WebChat reply context after reloads (#122169)
  fix(ui): make DONE moves visibly reversible (#122303)
  fix(ui): keep inline-code punctuation attached (#122291)
  fix(google-meet): publish exports atomically (#122306)
  fix(channels): preserve failed agent run reactions (#122009)
  fix(ui): label patch file operations accurately (#122287)
  fix(windows): preserve Unicode LAN route aliases (#122263)
  test(media): synchronize transcode pool completion (#122279)
  fix(android): keep completed subagent activity visible for sixty seconds (#122089)
  fix(ui): humanize bare GitHub item links (#122285)
  refactor(qqbot): install plugin from Tencent package (#107295)
  chore: scope SQLite session lifecycle CI (#121917)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 12, 2026
* test(ui): cover inline code punctuation spacing

* fix(ui): tighten inline code punctuation spacing

* test(ui): tolerate browser font metrics
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

[Bug]: Inline code chips visually detach adjacent punctuation

1 participant