Skip to content

Orchestration: codebuddy not recognized as injectable agent + Claude trust-folder dialog breaks wait tui-idle readiness #25623

Closed

Description

@louis-marshall

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:

  1. wait tui-idle succeeds prematurely
  2. If you dispatch --inject immediately, you get no recognized agent detected
  3. Even after manually selecting Yes, the inject fails until Claude Code fully boots to its main prompt

Steps to reproduce

  1. orca terminal create --command "claude" --worktree <fresh_untrusted_dir>
  2. orca terminal wait --for tui-idle → returns satisfied
  3. orca orchestration dispatch --inject → fails with "no recognized agent detected"
  4. Manually arrow-key to "Yes, I trust this folder" + Enter
  5. Wait a few more seconds for Claude Code main prompt
  6. Now dispatch --inject works

Expected

Either:

  • wait tui-idle should 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-permissions does NOT skip the trust folder prompt (only skips in-session permission prompts).
  • It would be great if Orca had a terminal wait --for agent-ready condition 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

  1. nwparker commented on Oct 24, 2026

    @nwparker
    Contributor

    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 so terminal wait --for tui-idle no 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.

  2. nwparker commented on Oct 27, 2026

    @nwparker
    Contributor

    Both blockers are fixed on main. CodeBuddy is a built-in agent since #23740 (ccdb324, shipped in v1.4.218), and dispatch --inject derives its recognized agents from that config, so codebuddy/cbc terminals are injectable. Claude's first-run trust-folder dialog is now detected as blocked (agent-trust-workspace), so terminal wait --for tui-idle no 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions