Description
Operating system
macOS
Orca version
Installed build was not recorded in the observation. Source contract inspected on stablyai/orca main at a91ca8b19e6b48b88f49c9bcf7e5941aedd2a1df.
Details
Short summary:
When a Claude terminal is already showing a local approval menu, orca terminal send --text '1' --enter --wait-submit 8 returns agent_prompt_blocked. That is a correct safety guard for an ordinary agent prompt, but Orca does not expose an obvious, request-bound route for submitting the selected approval choice. The coordinator cannot complete an already authorized read-only approval from its CLI path.
What happened?
A live Claude terminal displayed a read-only tool approval menu with 1. Yes selected. A text-plus-Enter send of 1 returned agent_prompt_blocked and a durable request ID. Reissuing the exact send with --retry-request <same ID> returned the same rejection, as an idempotent replay should. orca terminal switch focused the terminal handle, but orca computer get-app-state and press-key against the Orca window returned permission_denied although orca computer permissions --id accessibility reported granted. An AppleScript activate/keystroke attempt did not change the prompt; another app remained frontmost. The Computer Use permission mismatch resembles #20078, but we did not establish that an app update caused this instance.
How can we reproduce it?
- Start Claude Code in an Orca-managed terminal and make it request a local read-only tool approval.
- Capture the actual PTY transcript and rendered screen after scrubbing project text, account identifiers, terminal handles, and request IDs. Confirm the menu has
1. Yesselected. - Run
orca terminal send --terminal <handle> --text '1' --enter --wait-submit 8 --json. - Observe
agent_prompt_blockedwith no approval transition. Reissue the exact command with--retry-request <same-request-id>and confirm it replays the rejection without writing another1. - Try the documented Orca UI route. Record effective AX read status separately from the stored
accessibility: grantedflag.
Expected behavior:
Orca should keep the ordinary prompt guard, then expose a separate approval-resolution operation bound to the current observed approval request, terminal process incarnation, and selected option. It should require an exact request/option identity, reject stale or ambiguous prompts without writing input, and return a receipt distinguishing input accepted, approval consumed, and agent resumed. A retry with the same mutation ID must never choose twice. When the approval cannot be proven from structured provider data or a captured PTY prompt, return an explicit unverifiable/manual-action state with a usable path; do not tell callers to retry ordinary terminal send indefinitely. This must work for local and remote execution hosts without bypassing user authorization.
Suggested regression coverage:
- Existing permission guard still rejects ordinary
terminal sendbefore any paste or Enter (the current runtime test proves this). - A current, uniquely identified read-only approval can be resolved once through the dedicated route; exact retry replays the receipt with no second write.
- Stale request ID, changed process incarnation, changed screen, or multiple matching prompts refuse safely.
- A denied or unobservable GUI/AX path does not convert the approval into success; report effective permission failure separately from the stored grant.
- SSH/paired hosts perform the resolution on the execution host and return
unverifiableon contact loss.
Source evidence:
src/main/runtime/orca-runtime-resolve-authoritative-terminal-wait-permission.ts rejects an existing permission status before ordinary agent-prompt writes. src/main/runtime/agent-prompt-submission-verification.ts also rejects a permission transition. src/main/runtime/agent-prompt-submission-runtime.test.ts asserts no paste or Enter for an existing permission prompt. src/cli/specs/terminal-send.ts offers only ordinary text/Enter and submission observation; no approval-selection flag is present. This issue asks for a distinct route, not for weakening that guard.
Related: #20078 tracks the recurring Accessibility grant/read mismatch. #11644 concerns stale permission status after approval and is a different failure. #14822 concerns normal prompts accepted into a composer without submission and is also separate.
Activity
AmethystLiang commentedon Sep 22, 2026
thanks for reporting. looking into it
MsCNotes404 commentedon Oct 24, 2026
Additional installed-build evidence from Orca 1.4.239 on macOS, with Claude Code 2.1.310:
The terminal-send handler classifies nonempty text plus Enter without interrupt as an ordinary agent prompt (
promptCandidate, thenagentPrompt: true). The installed runtime'sassertAgentPromptPermissionSaferejects when status ispermissionor the permission sequence advanced, before writing to the PTY. Thus sending an approval choice through ordinary terminal-send is correctly refused; it is not an authenticated approval-response path.The installed app also has
agentSession.respondToApproval, but that routes through an Orca agent-session envelope. It is not evidence of approval support for an independently resumed Claude terminal. We did not fabricate an envelope or use a provider session UUID as an Orca session identity.Separately, narrow exact-command permission rules were saved externally. That does not guarantee an already-open Claude dialog reevaluates. Static inspection of installed Claude 2.1.310 shows external settings reload updating permission context without the notification used by its pending-dialog subscriber; in-app permission-context changes do send that notification. No binary modification or internal signal injection was attempted. Different exact row-limit arguments also need matching rules; configuration presence alone is not runtime acceptance.
Please confirm an owner for a supported, request-bound terminal approval response for restored CLI sessions, or document an existing supported route. It should bind current request, option, process incarnation and authorization, preserve all safety-only/human-only exclusions, reject stale or ambiguous state, and return consumed/resumed receipts with idempotent retry. Keep the ordinary agent-prompt guard unchanged. Until that path is available, external settings edits are not a verified way to close an already-open approval.
No terminal identities, project contents, client data or credentials are included here. No live guard changes, input workarounds or session restarts were performed for this investigation.