Skip to content

feat(ui): show PR status on Claude threads - #112180

Merged
steipete merged 3 commits into
mainfrom
fix/sidebar-pr-thread-tooltip
Jul 21, 2026
Merged

steipete merged 3 commits into
mainfrom
fix/sidebar-pr-thread-tooltip

Conversation

@steipete

@steipete steipete commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where Claude Desktop catalog threads could lose useful pull-request context in the OpenClaw sidebar. Historical catalog rows had no PR indicator at all, while adopted/live rows reduced the gateway result to a generic open/not-open boolean, so users could not tell which PRs belonged to a thread or whether the current PR was draft, open, merged, or closed.

Why This Change Was Made

Claude Desktop's existing thread metadata now contributes a bounded summary of non-dismissed PR numbers and the authoritative current PR state. The additive session-catalog protocol carries that summary from local and paired-node providers, while live OpenClaw sessions publish the gateway's exact PR numbers and state through the shared session capability. Both paths use one sidebar badge renderer and tooltip, with the live gateway summary taking precedence for adopted threads.

The summary keeps the current PR when history is partial or truncated, processes large metadata histories in linear time, rejects duplicate or invalid protocol values, preserves stale-request epoch guards, and does not add per-row GitHub polling.

AI-assisted implementation; I reviewed the metadata contract, protocol boundary, lifecycle behavior, generated client artifacts, rebase conflict resolution, and final diff.

User Impact

Claude catalog threads now show a pull-request glyph whenever thread metadata or the live session identifies associated PRs. Hovering the glyph explains the association with compact text such as #107302 · Draft or #111751, #111772 · Merged. Open PRs use the success color, merged PRs use the accent color, and draft/closed PRs remain visually quiet.

Evidence

The first exact-head CI run exposed a missing generated Swift protocol artifact, a dead export, and a max-lines regression in the test file. Those were fixed by regenerating the protocol, keeping the formatter private, and moving PR-refresh coverage into a dedicated test file; the exact-head rerun above is green.

Visual capture gap: both approved existing-Chrome connectors were unavailable in this session, so I did not substitute an isolated browser or touch the operator's live gateway. The supplied screenshots define the target tooltip behavior; the rendered DOM contract is covered by the focused AppSidebar and badge tests above.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime extensions: anthropic size: L maintainer Maintainer-authored PR labels Jul 21, 2026
@steipete
steipete marked this pull request as ready for review July 21, 2026 06:46
@steipete
steipete force-pushed the fix/sidebar-pr-thread-tooltip branch from 0169407 to f857159 Compare July 21, 2026 10:24
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for head f857159d76ce189c6387737b7b6270ed12f37c76:

The first CI attempt's branch-owned failures were fixed: generated Swift protocol output is committed, the tooltip formatter is private, and PR-refresh tests now live in a dedicated file. The refreshed exact-head run is green.

Known proof gap: existing-profile Chrome automation was unavailable, so no new visual capture was attached; I did not substitute an isolated browser or touch the operator's live gateway. The exact tooltip/state DOM behavior is covered by the focused sidebar tests.

@steipete

Copy link
Copy Markdown
Contributor Author

Maintainer decision and ClawSweeper rank-up disposition for head f857159d76ce189c6387737b7b6270ed12f37c76:

  • Shared catalog contract approved. Keep the bounded optional pullRequest summary in the generic session-catalog protocol and plugin SDK. The shape is provider-neutral (numbers plus current state), additive, validated, and avoids an Anthropic-only UI side channel or per-row GitHub polling. Future providers may opt into the same contract when they have authoritative PR associations.
  • Visual capture skipped with a documented blocker. Both approved existing-profile Chrome connectors were unavailable, and this task must not substitute an isolated browser or touch the operator's live gateway. The PR body and land-ready comment record that gap. Exact tooltip text, state styling attributes, static/adopted catalog rows, live precedence, and unrelated-row absence are covered by the focused sidebar tests; exact-head CI and Testbox validation are green.

No ClawSweeper code finding remains; this comment records the requested product-direction decision and the explicit reason the visual rank-up move is not being performed before merge.

@clawsweeper

clawsweeper Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat(ui): show PR status on Claude threads This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit b2aa216 into main Jul 21, 2026
127 checks passed
@steipete
steipete deleted the fix/sidebar-pr-thread-tooltip branch July 21, 2026 12:01
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 22, 2026
* feat(ui): show PR status on catalog threads

* fix(ui): complete PR summary protocol artifacts

* perf(anthropic): bound PR metadata deduplication
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 extensions: anthropic gateway Gateway runtime maintainer Maintainer-authored PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant