Repository navigation
Add a "Needs me" triage inbox for agent PRs to the PR list - #1631
Conversation
Solenta-Message-Id: 7c23d469-8d19-47d9-81a0-fe510ba38e40
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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; |
There was a problem hiding this comment.
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 👍 / 👎.
| const thread = matchThreadForPr(pr, threads, group.project.id); | ||
| if (!thread) continue; | ||
| rows.push({ project: group.project, pr, thread, triage: triagePr(pr, thread, now) }); |
There was a problem hiding this comment.
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 👍 / 👎.
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:Inside a bucket, the PR that has waited longest comes first. Each row also shows:
CI failing,Conflicts,Changes requested,Large diff,Idle NdandThread archived.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_FIELDSnow also requestschangedFiles,mergeable,reviewDecisionandstatusCheckRollup. This is still the singlegh pr listcall.summarizeCheckRollupreduces CheckRun and StatusContext rows to one verdict:pass,failorpending. A cancelled check counts asfail, so it is never treated as green.electron/github.jsnow fetchesreviewDecision. It still has no check rollup, so PR lists that come from the fallback show no CI state in the inbox. Aponytail:comment in the code records this.Refactor: the inline row JSX in
PrListView.tsxis moved into arenderRowhelper 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