Skip to content

Add a "Needs me" triage inbox for agent PRs to the PR list - #1631

Merged
currentbits merged 2 commits into
mainfrom
coder/agent-pr-triage-queue-a-which-agent-pr-n-7a721e
Oct 13, 2026
Merged

currentbits merged 2 commits into
mainfrom
coder/agent-pr-triage-queue-a-which-agent-pr-n-7a721e

Conversation

@currentbits

Copy link
Copy Markdown
Owner

What changed

The PR list gets a Needs me toggle (#260). When it's on, the per-project groups are hidden. In their place is one list of open agent PRs (PRs that have a Solenta thread) from every loaded project, grouped by the kind of attention each one needs rather than by how recent it is.

Triage buckets (src/prList.ts, triagePr / triageInbox), in display order:

  • Ready to merge: approved and nothing blocking it.
  • Needs your review: nothing blocking it and not yet approved.
  • Stale or closeable: the thread is archived, or the PR has had no update for 14 days and no agent is working on it.
  • Waiting on the agent or CI: CI failing or running, merge conflicts, changes requested, draft, or the agent is still working.

Inside a bucket, the PR that has waited longest comes first. Each row also shows:

PRs with no thread are left out of the inbox; they still appear under By project. Load errors for individual projects still show while the inbox is on.

Data (electron/worktrees-pr.js, src/shared/ipc.ts):

  • PR_LIST_FIELDS now also requests changedFiles, mergeable, reviewDecision and statusCheckRollup. This is still the single gh pr list call.
  • The new summarizeCheckRollup reduces CheckRun and StatusContext rows to one verdict: pass, fail or pending. A cancelled check counts as fail, so it is never treated as green.
  • The GraphQL fallback in electron/github.js now fetches reviewDecision. It still has no check rollup, so PR lists that come from the fallback show no CI state in the inbox. A ponytail: comment in the code records this.

Refactor: the inline row JSX in PrListView.tsx is moved into a renderRow helper so the project view and the inbox render rows the same way. This accounts for most of the line churn in that file.

Tests

  • electron/test/list-prs.test.js: parsing of the new fields and the CI rollup verdicts, including cancelled → fail and an empty rollup → undefined.
  • test/prList.test.ts: bucket rules, depth thresholds, signal order, and inbox filtering and sorting across projects.
  • test/prListView.test.tsx: the toggle hides project groups, PRs land in the right buckets in attention order, PRs without a thread are excluded, and the chips render.

🤖 Generated with Claude Code

Solenta-Message-Id: 7c23d469-8d19-47d9-81a0-fe510ba38e40
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T14:38:13.951201Z 931525b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 931525bcc6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<div className={styles.list} data-return-scroll="">
{filtered.map((group) => {
// The inbox keeps per-project load errors; its rows render below.
if (group.ok && inbox) return null;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep pagination controls available in inbox mode

When a repository has more than the default 50 open PRs, group.complete is false, but this early return hides the entire successful project section, including its existing “Load more” control. Consequently, an agent-linked PR outside the first page is silently absent from “Needs me,” and the user cannot extend the page without first leaving inbox mode. Render an inbox-level load control or otherwise preserve the incomplete-project controls.

Useful? React with 👍 / 👎.

Comment thread src/prList.ts
Comment on lines +221 to +223
const thread = matchThreadForPr(pr, threads, group.project.id);
if (!thread) continue;
rows.push({ project: group.project, pr, thread, triage: triagePr(pr, thread, now) });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Prefer the live thread when triaging duplicate PR links

When a PR's original thread has been archived and the PR is checked out again, findExistingPrThread intentionally ignores the archived thread and creates a new live one, which is appended after the old thread. This call still uses matchThreadForPr, which returns the first number match, so it selects the older archived thread and places the actively handled PR in “Stale or closeable”; row selection also targets that archived thread. Prefer a non-archived matching thread, falling back to the archived one only when no live match exists.

Useful? React with 👍 / 👎.

@currentbits
currentbits merged commit 7acaf58 into main Oct 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant