Repository navigation
fix(ui): humanize GitHub issue and pull request links - #122285
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: found issues before merge. Reviewed August 11, 2026, 6:00 PM ET / 22:00 UTC. ClawSweeper reviewWhat this changesThe branch renders automatically generated GitHub issue and pull-request URLs in Control UI chat as compact Merge readinessKeep open: the branch still drops the existing narrow-pane breakability contract for every compacted GitHub item link, so it needs the prior P2 revision before merge. Priority: P3 Review scores
Verification
How this fits togetherControl UI turns chat Markdown into sanitized links, then its GitHub hovercard recognizes supported item URLs and requests preview metadata from the Gateway. This change affects the visible chat-link label before that hover interaction. flowchart LR
Message[Chat Markdown] --> Renderer[Markdown renderer]
Renderer --> Recognition[GitHub item recognition]
Recognition --> Label[Compact link label]
Label --> Chat[Control UI chat]
Chat --> Hover[GitHub hover preview]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +16, Tests +13. Total +29 across 5 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Retain Do we have a high-confidence way to reproduce the issue? Yes, at source level: render a long generated GitHub item URL in a narrow chat pane; the branch removes the sole class that enables its unconditional break points. No local test was run because this review is read-only. Is this the best way to solve the issue? No: sharing the item-path parser is a clean direction, but the branch must preserve the existing generated-link wrapping invariant rather than making compact labels a separate unbreakable case. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 459c70e14a2c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
2edaf70 to
a7c4f39
Compare
|
Pre-merge review complete for
Ready for the native landing flow. |
|
Merged via squash.
|
|
Landed as Exact-head CI passed on Issue #122273 was closed by the merge. |
* 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) ...
Closes #122273
What Problem This Solves
Fixes an issue where bare GitHub issue and pull request URLs consumed excessive space in Control UI chat even though the renderer already recognized them as GitHub references.
Why This Change Was Made
In this PR, generated URL labels for recognized GitHub issues and pull requests render as
owner/repo#123while keeping the original destination and hover preview. Explicit Markdown labels remain untouched. The GitHub item parser is shared with the hovercard so both surfaces use one path contract; session-relative#123labels remain out of scope because the Markdown render contract has no repository identity.The existing link-decoration contract is unchanged: GitHub references have no underline at rest, while ordinary Markdown links keep the base underline established and tested in #121728.
User Impact
Issue and pull request references are shorter, easier to scan, and less likely to wrap across lines. Repository links and authored labels keep their current presentation.
Compact generated labels retain the existing break-anywhere behavior, so long owner and repository names remain contained in narrow chat panes.
Evidence
node scripts/run-vitest.mjs ui/src/components/markdown-links.test.ts— 72 tests passed.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/github-link-hovercard.e2e.test.ts— Chromium flow passed in both themes, including hover previews, navigation, and long-reference containment at 360px.OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs --base HEAD^ --head HEAD— passed formatting, guards, dead-export scans, i18n verification, core-test/UI typechecks, and changed-file lint on exact heada7c4f39909dc(Blacksmith Testbox,tbx_01kzsdp90jnzvg6rw091fw58sj).openclaw/ci-gategreen fora7c4f39909dc.markdown-bare-urlis absent, then passes with the retained class and 360px Chromium containment check.origin/mainreported no actionable findings.