claude-code - 💡(How to fix) Fix Agent view: surface PR CI status on PR cards (✅ / 🔄 / ❌) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#58659Fetched 2026-05-14 03:42:41
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

Error Message

  • ⚠️ — error state (e.g. workflow failed to start)

Fix Action

Fix / Workaround

Workaround today

RAW_BUFFERClick to expand / collapse

Problem

When Claude Code creates or interacts with a GitHub PR during a session (e.g. via gh pr create), the agent view shows a PR card with the PR number and link. The CI status of that PR isn't on the card — to know whether checks are passing, pending, or failing, I have to context-switch to GitHub or run gh pr view.

For iterative workflows (open PR → address review → push → wait for CI → repeat), a glanceable status indicator on the agent view card would remove a constant context switch.

Proposed solution

Show an aggregate CI status indicator on the agent-view PR card:

  • ✅ — all required checks succeeded
  • 🔄 — any check still pending/running
  • ❌ — any required check failed
  • ⚠️ — error state (e.g. workflow failed to start)

Source the data from gh pr view --json statusCheckRollup or the equivalent GitHub GraphQL field. Refresh on a sensible cadence (e.g. every ~30s while the agent view is focused, and after any tool call that hits gh pr).

Acceptance criteria

  • Agent-view PR cards show an aggregate CI status indicator
  • Indicator updates without restarting the session
  • Works for PRs created during the current session AND PRs that were already open when the session started

Workaround today

`statusLine` + a `PostToolUse` hook that captures PR numbers from `gh pr create` output, polls `gh pr view --json statusCheckRollup`, and emits a colored dot in the status line. ~30 lines of shell. Works, but isn't tied to the agent-view card and shows only one PR at a time.

Related

  • #58649 ("Agents View: show branch name, merge status") — adjacent ask for more PR metadata on the agent-view card. CI status could fold into the same iteration on that card UI.

Filed by a Claude Code user via session automation.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Agent view: surface PR CI status on PR cards (✅ / 🔄 / ❌) [1 participants]