You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: serve stdio Prompt mode rejects tool approval instead of using its approval RPC channel #1041
Searched for interactive approval with stdio; no matching issue found.
Version and environment
Astra CLI 0.2.11, clean main 8ee927c, Linux, official astra serve stdio protocol with pipe stdin/stdout.
Actual behavior
After initialize, thread/start, and turn/start with an explicit permissionMode=prompt, a real selected model requests write_file. The tool is denied before execution with: The tool was not executed because this run does not allow interactive approval.
No usable approval request reaches the protocol client. The turn was explicitly cancelled after the repeated refusal; no file was created. The ordinary terminal CLI, in contrast, displayed a Write File approval and accepted one-time approval (it then encountered the separate host coordination-root issue).
Expected behavior
A protocol client that supports approval should be able to answer the existing approval RPC in Prompt mode without requiring a physical TTY. If this mode is unsupported, reject the combination clearly at admission rather than starting a model loop that cannot satisfy its tool approvals. Keep actual approval semantics and hard denials intact.
Steps to reproduce
Launch the official compiled CLI as astra --model <available-model> --bare serve stdio with pipes.
Send initialize and thread/start.
Send turn/start with permissionMode=prompt and a minimal file-write request.
Observe the noninteractive refusal rather than an actionable protocol approval request.
Additional information
Source inspection: app_server wires approval_request_tx, while derive_turn_interaction_mode in cli/chat_stream/sse_loop/server_admission_host.rs depends on stdin being a TTY and an ask-user channel. Verify and test the actual canonical admission/channel ownership rather than adding a second approval implementation. No unattended auto-approval is requested.
Activity