fix: show every pending permission prompt for parallel tool calls #15
No reviewers
Labels
No labels
Agent
Ignore
Agent
In Progress
Agent
Planned
Agent
Planning
Agent
Ready
Agent
Triage
Compat
Breaking
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lucas/omp-deck!15
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/f-12"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When two tool calls hit an
askpermission rule at the same time, the server kept a separate prompt for each, but the web client kept only one per session. The second prompt replaced the first, so one prompt was never shown and its call waited until the turn was aborted. The session snapshot also carried only one prompt, so a reload didn't help.Prompts now form a queue per session, oldest first. The approval dialog shows the oldest prompt with a "+N more pending" count, and answering it reveals the next. A response or cancellation removes only its own
toolCallId. The snapshot field is nowpendingPermissionPrompts(an array), so a reload restores every pending prompt.Decisions
SessionSnapshot.pendingPermissionPrompt(one prompt) is replaced bypendingPermissionPrompts(an array), with no compatibility alias. Server and web ship together from this repo, and nothing else reads the field.pendingFramesand could still reach a snapshot. The abort path now removes it too.apps/web/src/lib/permission-prompts.ts, so it can be unit-tested without the zustand store.Verification
bun test apps/server/src/bridge/permission-filter.test.ts apps/server/src/bridge/in-process-queue.test.ts apps/web/src/lib/permission-prompts.test.ts: 41 pass, 0 fail. New tests cover:bun run typecheck(protocol, server, web): all passed.bun test: 962 pass, 0 fail across 70 files.Closes #12