Repository navigation
fix(ui): keep GitHub reference icons with wrapped labels - #163047
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 October 2, 2026, 2:26 AM ET / 06:26 UTC (Revision 2). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -3, Tests +12. Total +9 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
…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 |  |  | | 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.
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.
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.