Repository navigation
Answer every pending agent approval from one Approvals inbox (#291) - #1697
Conversation
Solenta-Message-Id: 1ed15998-a235-4276-a244-862554bb1820
…l-inbox-every-pending-per-fd0b50 # Conflicts: # electron/runner-permissions.js
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: 492d7f5113
ℹ️ 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".
| return () => { | ||
| live = false; | ||
| }; | ||
| }, [loadApprovals, threads]); |
There was a problem hiding this comment.
Refetch on every approval-change notification
When a second prompt arrives for a thread that is already awaiting input, the runner broadcasts threads:changed without changing any ThreadInfo field. applyThreads in src/useCoder.ts deliberately preserves the existing array identity for such no-op list pushes, so this threads dependency does not change and the inbox never reloads the new prompt. Consequently, an already-open inbox omits later concurrent prompts until some unrelated thread-row mutation occurs; use a notification generation/event rather than the reconciled list identity as the refetch trigger.
Useful? React with 👍 / 👎.
| <button | ||
| type="button" | ||
| className={styles.button} | ||
| disabled={picked.length === 0} | ||
| onClick={() => void answer(picked, "allow")} |
There was a problem hiding this comment.
Disable batch actions while selected rows are busy
During a multi-row batch, selected keys remain in picked until every sequential IPC call finishes, while busy disables only the per-row controls. The header Allow and Deny buttons therefore remain enabled throughout the operation, so clicking either again—especially with a long queue or over the web bridge—submits duplicate or conflicting responses for the same request IDs and reports spurious “no longer pending” failures. Disable both batch actions whenever any picked key is busy.
Useful? React with 👍 / 👎.
The fixture's last step is the result line, and the replay CLI logs done only after writing it. On a loaded macOS runner the thread can reach done in that gap. The other replay scenarios already wait on replay.finished. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Permission prompts were only visible inside the thread that raised them, and only the first prompt of each thread was shown. A new Approvals view (More menu, or "Open approvals" in the command palette) lists every pending prompt across all threads in one queue. You can answer each one there, or select several and answer them as a batch. Part of #291.
Changes
requestId, so answering one row never moves an unrelated one. Allow for session is hidden wherever the thread card hides it (profile.askrules, Codex prompts that don't offer it).threads:changed. Claude and Codex now broadcast on every prompt, so a second prompt on a thread that's already waiting still reaches the inbox. OpenCode already did this.threads.pendingApprovalschannel. It's read-only and classed as areadweb scope. Answering still goes throughthreads.respondPermission, which needssteer.Verification
npm run typecheck: clean, including the preload sync check.npm run test:electron: 4982/4982 pass. Run with inheritedCODER_*vars stripped to match CI.test/approvalsView.test.tsx.npx vite build: succeeds.threads:changed.Notes for reviewers
Not built here, though #291 mentions them:
The inline row also has no command editing and no picker for the always-allow rule (#479). Those stay on the thread card.
claude-opus-5-5 via Claude Code
🤖 Generated with Claude Code