Repository navigation
Description
Summary
When testing orca orchestration dispatch --inject from an external agent (not inside Orca's own terminal), I hit two blockers that made it hard to run a supervised multi-agent orchestration test end-to-end.
Environment
- Orca app version: 1.4.180
- OS: macOS (Darwin)
- Tested from an external bash shell (not inside Orca-managed terminal)
Issue 1: codebuddy not recognized as an injectable agent
What happened
I created a codebuddy terminal successfully via orca terminal create --command "codebuddy", waited for TUI idle, then tried:
orca orchestration dispatch --task <task_id> --to <codebuddy_terminal_handle> --inject
Error
Cannot dispatch --inject to terminal ...: no recognized agent detected. Start an agent CLI (e.g. claude, codex, gemini, droid, cursor) in the terminal first, or dispatch without --inject and send the prompt manually.
Expected
CodeBuddy (a popular coding agent CLI) should be recognized as an injectable agent type, similar to claude / codex / gemini / droid / cursor.
Workaround
I had to fall back to manual terminal send + prompt injection, which loses all orchestration lifecycle (worker_done, heartbeat, ask messages).
Issue 2: Claude Code "trust folder" safety check breaks wait tui-idle readiness detection
What happened
When launching claude in a fresh Orca terminal, Claude Code shows a first-run "Quick safety check: Is this a project you created or one you trust?" dialog.
orca terminal wait --for tui-idle returns satisfied: true while this dialog is still visible, because the TUI itself is idle (waiting for arrow-key input). But the agent CLI is NOT actually ready to receive prompts yet — the user has to select "Yes, I trust this folder" first.
This means:
wait tui-idlesucceeds prematurely- If you
dispatch --injectimmediately, you getno recognized agent detected - Even after manually selecting Yes, the inject fails until Claude Code fully boots to its main prompt
Steps to reproduce
orca terminal create --command "claude" --worktree <fresh_untrusted_dir>orca terminal wait --for tui-idle→ returns satisfiedorca orchestration dispatch --inject→ fails with "no recognized agent detected"- Manually arrow-key to "Yes, I trust this folder" + Enter
- Wait a few more seconds for Claude Code main prompt
- Now
dispatch --injectworks
Expected
Either:
wait tui-idleshould account for known agent first-run dialogs and not return ready until the main prompt is visible, or- There should be a documented way to pre-trust a folder (e.g. a flag or config file) so Claude Code skips the safety check entirely
Workaround
I had to manually send arrow keys + carriage return via terminal send, which is fragile and version-dependent.
Additional notes
--dangerously-skip-permissionsdoes NOT skip the trust folder prompt (only skips in-session permission prompts).- It would be great if Orca had a
terminal wait --for agent-readycondition that detects the actual agent CLI is ready to accept prompts, not just that the TUI loop is idle.
Happy to provide more logs or help reproduce!
Activity
nwparker commentedon Oct 24, 2026
Thanks for the detailed report! Both blockers look addressed on current builds: CodeBuddy was added as a built-in coding agent in #23740 (v1.4.218), so it is recognized for
dispatch --inject, and Claude Code's first-run trust-folder dialog is now detected soterminal wait --for tui-idleno longer treats it as ready. Could you confirm on the latest build? If either still reproduces, please reply or reopen with the output and we'll take another look.nwparker commentedon Oct 27, 2026
Both blockers are fixed on main. CodeBuddy is a built-in agent since #23740 (ccdb324, shipped in v1.4.218), and
dispatch --injectderives its recognized agents from that config, socodebuddy/cbcterminals are injectable. Claude's first-run trust-folder dialog is now detected as blocked (agent-trust-workspace), soterminal wait --for tui-idleno longer settles over it; I ran main's trust-dialog readiness tests against the captured dialog fixtures. Closing — please reopen if you still see either on a current build.