Skip to content

fix(ui): show repository-qualified GitHub issue and PR references - #172836

Merged
steipete merged 3 commits into
mainfrom
openclaw/gentle-shell
Oct 15, 2026
Merged

steipete merged 3 commits into
mainfrom
openclaw/gentle-shell

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

GitHub issue and pull request references can appear as a number alone, making them ambiguous in conversations that discuss multiple repositories.

User Impact

  • Issue and PR chips, pull request rows, and unavailable-preview labels show the full owner/repo#number reference.
  • Shorthand references still resolve from repository context; descriptive link labels and destinations stay unchanged.
  • Long repository names wrap without overlapping PR controls, including narrow layouts.

Why This Change Was Made

Use a shared GitHub item reference formatter and consume qualified inline references as one link instead of repeating the repository prefix.

Evidence

  • 234 focused unit tests, 8 Chromium PR-row tests, 13 GitHub hovercard E2E tests, and the focused shared-publication recovery E2E test passed (256 selected tests total).
  • UI typecheck, targeted lint, stylelint, formatting, and whitespace checks passed.
  • Independent review: no actionable P0–P2 findings; reviewer inspected the diff but did not execute tests.
  • CI caught one stale tooltip assertion that still expected a bare issue number. Reproduced locally, updated it to the requested qualified label, and both tooltip lifecycle tests passed; production code is unchanged by this follow-up.

Before

Before: number-only issue and PR chips

After

After: repository-qualified issue and PR chips

Worked on by

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits October 15, 2026 06:17
Show owner/repo#number in GitHub item chips, previews, and pull request rows while preserving descriptive links and repository context resolution.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: d3e5389e-79cb-43ae-86be-dc0e9130609e
@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui extensions: github GitHub plugin: link previews and reader size: M labels Oct 15, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 15, 2026 06:19
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 15, 2026 06:26
@roboclaw-bot
roboclaw-bot disabled auto-merge October 15, 2026 06:32
@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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR shows repository-qualified GitHub issue and PR references in chat chips, PR rows, and unavailable previews.

Example: A conversation links #99816.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused presentation work with direct visual evidence, held below merge readiness by a confirmed stale test expectation.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser crops exercise the changed Markdown presentation and visibly show qualified issue and PR chips; the images do not depict PR rows or unavailable-preview headers.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Number-only references are ambiguous when a conversation discusses several repositories.
Reason: The previous compact presentation was intentional; collaborator authorship supplies the owner decision to prefer repository-qualified identity, with a focused implementation and visible benefit.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the maintainer-directed presentation improvement is useful, but one stale test expectation causes the reviewed head’s CI failure.

Priority: P3
Reviewed head: 2c0372fce704df38cde076b4a84892a31bf3f251

Before merge

  • Update the tooltip lifecycle expectation to the qualified reference (P2) - The renderer now returns openclaw/openclaw#99815, but this existing lifecycle test still asserts #99815. GitHub’s checks-ui annotation for the reviewed head confirms this exact assertion failure, which also fails ci-gate. Update the expectation while retaining the tooltip lifecycle assertions; the PR body’s claimed follow-up is absent from this head.

Findings

  • [P2] Update the tooltip lifecycle expectation to the qualified reference — ui/src/components/link-reader-title-tooltip.test.ts:259

Tests

  • Missing end-to-end proof: The supplied evidence does not show the revised regression assertions failing on the base.
Agent review details

How this fits together

The Control UI turns Markdown links, repository-context shorthand, and Gateway PR metadata into navigable references and preview labels.

flowchart LR
  A[Chat Markdown] --> B[Reference resolver]
  B --> C[GitHub target parser]
  D[Gateway PR metadata] --> E[Shared reference formatter]
  C --> E
  E --> F[Chat chips and PR rows]
  E --> G[Unavailable preview labels]
Loading

Technical review

Best possible solution:

Retain the shared qualified-reference presentation and update the remaining tooltip lifecycle expectation.

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

Current-main source emits number-only generated references, and the supplied before screenshot shows the ambiguity; no target code was executed during this review.

Is this the best way to solve the issue?

The existing target parser is a suitable home for shared formatting, and the consumers preserve descriptive labels and navigation without adding configuration or a competing resolver.

Full review comments:

  • [P2] Update the tooltip lifecycle expectation to the qualified reference — ui/src/components/link-reader-title-tooltip.test.ts:259
    The renderer now returns openclaw/openclaw#99815, but this existing lifecycle test still asserts #99815. GitHub’s checks-ui annotation for the reviewed head confirms this exact assertion failure, which also fails ci-gate. Update the expectation while retaining the tooltip lifecycle assertions; the PR body’s claimed follow-up is absent from this head.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 33a36fe4a2ee.

Provenance checked

  • Markdown chip labels changes intended behavior with a stated reason (127ecdd: Compact #N chips made GitHub items recognizable while retaining exact destinations and descriptive labels.)
  • Inline repository-qualified references keeps the original intent (80d1c43: Resolve repository identity at the href producer using explicit qualifiers and authorized project context.)
  • Unavailable-preview identity keeps the original intent (0e2a0c1: Keep PR or issue identity visible when preview metadata cannot load.)
  • PR-row identity and layout changes intended behavior with a stated reason (2d54be3: Expose session PR identity and status beside the conversation; the qualified reference now incorporates the repository previously rendered separately.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/components/link-reader-title-tooltip.test.ts --maxWorkers=1
  • pnpm exec oxfmt --check ui/src/components/link-reader-title-tooltip.test.ts
  • pnpm exec oxlint -c .oxlintrc.json ui/src/components/link-reader-title-tooltip.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 127ecdd adds ui/src/components/markdown-parser.ts:553 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 127ecdd810b5; files: ui/src/components/markdown-parser.ts)
  • RoboClaw: Raw commit 80d1c43 adds ui/src/components/markdown-github-refs.ts:126 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 80d1c4335550; files: ui/src/components/markdown-github-refs.ts)
  • Jacqueline Henriksen: Raw commit 68d6e3b adds ui/src/components/markdown-github-refs.ts:150 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 68d6e3b9646d; files: ui/src/components/markdown-github-refs.ts)

PR surface

Source +15, Tests +88, Docs +3. Total +106 across 16 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 8 35 20 +15
Tests 7 164 76 +88
Docs 1 4 1 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 16 203 97 +106

Labels

Label changes:

  • add P3: This improves reference readability without changing navigation, configuration, authorization, or stored data.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This improves reference readability without changing navigation, configuration, authorization, or stored data.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 15, 2026, 2:48 AM ET / 06:48 UTC.

@steipete
steipete merged commit e8eef4f into main Oct 15, 2026
84 checks passed
@steipete
steipete deleted the openclaw/gentle-shell branch October 15, 2026 08:52
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…enclaw#172836)

* fix(ui): qualify GitHub issue and pull request references

Show owner/repo#number in GitHub item chips, previews, and pull request rows while preserving descriptive links and repository context resolution.

Co-authored-by: steipete <[email protected]>

* fix(ui): show repository-qualified GitHub issue and PR references

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: d3e5389e-79cb-43ae-86be-dc0e9130609e

* test(ui): update qualified GitHub reference expectations

---------

Co-authored-by: steipete <[email protected]>
Co-authored-by: Peter Steinberger <[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 docs Improvements or additions to documentation extensions: github GitHub plugin: link previews and reader 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants