Repository navigation
feat(ui): show PR status on Claude threads - #112180
Conversation
0169407 to
f857159
Compare
|
Land-ready proof for head
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. |
|
Maintainer decision and ClawSweeper rank-up disposition for head
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 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. |
|
Merged via squash.
|
* feat(ui): show PR status on catalog threads * fix(ui): complete PR summary protocol artifacts * perf(anthropic): bound PR metadata deduplication
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 · Draftor#111751, #111772 · Merged. Open PRs use the success color, merged PRs use the accent color, and draft/closed PRs remain visually quiet.Evidence
tbx_01ky19p57gjxfpq1pdt8a2r2tx.check:changedcovered core, core tests, UI, extensions, and extension tests.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.