Skip to content

fix(ui): keep GitHub reference icons with wrapped labels - #163047

Merged
steipete merged 2 commits into
mainfrom
codex/github-reference-icon-wrap
Oct 2, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/github-reference-icon-wrap

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes GitHub reference icons wrapping onto a line of their own in narrow chat columns.

User Impact

The icon stays beside the first line of the reference. Short references remain unbroken, while long repository-qualified references can wrap inside the available width. No migration or operator action is required.

Why This Change Was Made

Reuse the existing positioned GitHub icon and reserve its space with logical padding. Removing the item-specific in-flow overrides reduces production CSS by three lines and preserves left-to-right and right-to-left layout.

Evidence

The regression reproduced in both themes before the fix. All seven focused browser cases pass afterward, including the existing 200–900px width sweep; the fixture now loads production typography. The focused wrapper took 6.993 seconds with one worker. Changed checks and independent Codex P2 review passed. Synthetic Chromium captures also cover the loaded production font and long labels in both text directions.

The current composition incorporates the separately landed composer-focus expectation repair (#163089). All seven GitHub-reference browser cases passed in 6.091 seconds and the full-app composer focus case passed in 17.574 seconds. Changed checks and independent P2 review passed on the exact corrected tree. The original full-suite failure and cancelled coverage remain recorded.

Theme Before After
Light Before, light After, light
Dark Before, dark After, dark

The maintainer explicitly waived further test execution and approved landing the reviewed correction. Existing passing evidence and failed/cancelled runs remain as recorded; no current-head CI success is claimed. Independent code review, security review, and exact-head merge admission remain required.

@clawsweeper

clawsweeper Bot commented Oct 1, 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.

@steipete
steipete marked this pull request as ready for review October 1, 2026 22:38
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 2:26 AM ET / 06:26 UTC (Revision 2).

ClawSweeper review

What this changes

The PR keeps GitHub issue and pull-request icons beside wrapped chat labels and strengthens browser checks for production typography and overflowing references.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused fix: current main retains the wrapping defect, and inspected before/after screenshots demonstrate the correction. No actionable correctness or security findings remain.

Priority: P3
Reviewed head: 2dd4d3e446a51c89602d9ce6ca26417b4510fb3d

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A small production simplification has clear before/after visual evidence and focused coverage for wrapping, overflow, themes, and interaction.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium before/after captures exercise the changed chat stylesheet with production typography and synthetic qualified references at narrow widths in both themes; afterward the icon remains beside the first label line. Browser assertions supplement this directly visible appearance proof. No stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected Chromium before/after captures exercise the changed chat stylesheet with production typography and synthetic qualified references at narrow widths in both themes; afterward the icon remains beside the first label line. Browser assertions supplement this directly visible appearance proof. No stored-data contract changes.
Evidence reviewed 8 items Pinned introduced change: The merge-base-to-head diff changes only GitHub-reference CSS and its browser fixture. Removing the item-specific static positioning lets the existing relative anchor and absolute decorative icon serve the reference chip. The stylesheet changes are unchanged since the earlier reviewed head.
Current main still needs the fix: Fetched main still gives item chips and their icons position: static, with an inline-block icon preceding a label that may wrap. It does not contain this PR's positioned-icon correction.
Inspected visual proof: Inspected all four downloaded images linked in the captured PR body. Synthetic Chromium captures using production typography show a stranded pull-request icon at 200px before the change and the icon beside the first label line afterward, in both light and dark themes. These directly demonstrate the changed appearance; they do not claim provider or Gateway execution.
Findings None None.
Security None None.

How this fits together

The Control UI renders GitHub references from chat Markdown as compact links with decorative icons. Its chat stylesheet controls how those icons and labels fit into narrow conversation columns.

flowchart LR
  A[Chat Markdown] --> B[GitHub reference recognition]
  B --> C[Reference link and kind]
  C --> D[Chat typography and styles]
  E[Available column width] --> D
  D --> F[Icon beside wrapped label]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -3, Tests +12. Total +9 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 5 8 -3
Tests 1 16 4 +12
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 21 12 +9

Review metrics

None.

Technical review

Best possible solution:

Use the existing positioned decorative icon for reference chips while preserving readable wrapping, theme colors, and keyboard interaction.

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

Yes: current-main CSS leaves the icon in flow before a wrappable qualified label, and the supplied 200px browser captures show the resulting separation. This review did not execute a current-main reproduction.

Is this the best way to solve the issue?

Yes: removing the chip-specific positioning overrides reuses the existing icon owner, and the browser assertions protect the visible alignment and overflow contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 079b9cca16e4.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P3: This is a bounded chat-layout correction with no changed configuration, transport, or persisted-state contract.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected Chromium before/after captures exercise the changed chat stylesheet with production typography and synthetic qualified references at narrow widths in both themes; afterward the icon remains beside the first label line. Browser assertions supplement this directly visible appearance proof. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected Chromium before/after captures exercise the changed chat stylesheet with production typography and synthetic qualified references at narrow widths in both themes; afterward the icon remains beside the first label line. Browser assertions supplement this directly visible appearance proof. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected Chromium before/after captures exercise the changed chat stylesheet with production typography and synthetic qualified references at narrow widths in both themes; afterward the icon remains beside the first label line. Browser assertions supplement this directly visible appearance proof. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The merge-base-to-head diff changes only GitHub-reference CSS and its browser fixture. Removing the item-specific static positioning lets the existing relative anchor and absolute decorative icon serve the reference chip. The stylesheet changes are unchanged since the earlier reviewed head. (ui/src/styles/chat/text.css:719, 2dd4d3e446a5)
  • Current main still needs the fix: Fetched main still gives item chips and their icons position: static, with an inline-block icon preceding a label that may wrap. It does not contain this PR's positioned-icon correction. (ui/src/styles/chat/text.css:721, 079b9cca16e4)
  • Inspected visual proof: Inspected all four downloaded images linked in the captured PR body. Synthetic Chromium captures using production typography show a stranded pull-request icon at 200px before the change and the icon beside the first label line afterward, in both light and dark themes. These directly demonstrate the changed appearance; they do not claim provider or Gateway execution.
  • Browser contract coverage: The complete browser test exercises production styles across 200–900px widths, checks icon/label alignment and chip overflow, preserves ordinary GitHub-link wrapping, and covers oversized labels in both directions plus hover and keyboard focus. The captured body reports seven passing cases in 6.091 seconds on the corrected composition; this read-only review did not execute tests. (ui/src/styles/chat-github-link-presentation.browser.test.ts:170, 2dd4d3e446a5)
  • Existing production boundary: The Markdown parser adds both GitHub-link and item-chip classes with the issue/pull kind. The production chat stylesheet imports startup typography before text styles. Current feature documentation describes these compact, bundled, decorative icons; the patch changes presentation without changing destinations, preview authority, or stored state. (ui/src/components/markdown-parser.ts:518, 2dd4d3e446a5)
  • Merged feature history and routing: Main history identifies the original reference-chip feature and earlier GitHub mark wrapping work. GitHub verifies feat(ui): render GitHub issue and PR links as reference chips #139653 as merged with author steipete and fix(ui): keep the GitHub mark on its label's line when chat wraps #123355 as merged with author vyctorbrzezowski. These support routing independently of the current PR authorship. (ui/src/styles/chat-github-link-presentation.browser.test.ts, 127ecdd810b5)

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)

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 (1 earlier review cycle)
  • reviewed 2026-10-01T22:43:27.650Z sha be82a8b :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Oct 2, 2026
@steipete
steipete merged commit b80acea into main Oct 2, 2026
88 of 89 checks passed
@steipete
steipete deleted the codex/github-reference-icon-wrap branch October 2, 2026 06:46
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…3047)

## What Problem This Solves

Fixes GitHub reference icons wrapping onto a line of their own in narrow chat columns.

## User Impact

The icon stays beside the first line of the reference. Short references remain unbroken, while long repository-qualified references can wrap inside the available width. No migration or operator action is required.

## Why This Change Was Made

Reuse the existing positioned GitHub icon and reserve its space with logical padding. Removing the item-specific in-flow overrides reduces production CSS by three lines and preserves left-to-right and right-to-left layout.

## Evidence

The regression reproduced in both themes before the fix. All seven focused browser cases pass afterward, including the existing 200–900px width sweep; the fixture now loads production typography. The focused wrapper took 6.993 seconds with one worker. Changed checks and independent Codex P2 review passed. Synthetic Chromium captures also cover the loaded production font and long labels in both text directions.

The current composition incorporates the separately landed composer-focus expectation repair (openclaw#163089). All seven GitHub-reference browser cases passed in 6.091 seconds and the full-app composer focus case passed in 17.574 seconds. Changed checks and independent P2 review passed on the exact corrected tree. The original full-suite failure and cancelled coverage remain recorded.

| Theme | Before | After |
| --- | --- | --- |
| Light | ![Before, light](https://github.com/user-attachments/assets/23a31a40-d0ba-4c87-b1d7-8c168f7883f6) | ![After, light](https://github.com/user-attachments/assets/d647ee86-fd11-4eb4-ac3d-e41b6f51b5f2) |
| Dark | ![Before, dark](https://github.com/user-attachments/assets/b5459098-b5a1-406e-a3d5-f7f06c6f687b) | ![After, dark](https://github.com/user-attachments/assets/26765826-83cc-4138-8e6c-4dfaa1ecb9f3) |

The maintainer explicitly waived further test execution and approved landing the reviewed correction. Existing passing evidence and failed/cancelled runs remain as recorded; no current-head CI success is claimed. Independent code review, security review, and exact-head merge admission remain required.
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 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: 🦞 diamond lobster Very strong PR readiness with only minor 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.

1 participant