Agent view: surface PR CI status on PR cards (✅ / 🔄 / ❌)
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 rungh 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._
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗