Skip to content

[Bug]: agentWait stays unset while Claude Code, Codex or Grok shows a question or a startup dialog #25854

Closed

Description

@ixiion001

Orca version

1.4.220 (macOS)

What happens

agentWait (on terminal show / terminal list) is the signal that an agent waits for the user. In a side-by-side
test with six hosts, the same prompt asked each one a question ("Red or blue?") and waited for the answer:

Host Question on screen agentWait
Antigravity (agy) yes {"source":"hook",…}
oh-my-pi (omp) yes {"source":"hook",…}
Claude Code 2.1.289 yes none
Codex CLI 0.160.0 yes none
Grok CLI 1.0.46 yes none
dsh yes none

Startup dialogs are not flagged either: folder-trust dialogs from Claude, Codex and Grok in a new repository showed as
an idle, non-waiting terminal (six of eight workers in one orchestration run stopped on one, with nothing in Orca
saying so).

Repro

  1. orca terminal create --command "claude" (likewise codex, grok) in a worktree.
  2. orca terminal send a prompt that ends with a question to the user, e.g. "Ask me whether the file should be red
    or blue, then wait for my answer."
  3. When the question is on screen, orca terminal show --json: no agentWait.

Expected

agentWait set whenever the agent waits for the user: a question at the end of a turn, a permission or trust dialog.
For Claude Code, the Notification hook (idle_prompt, permission_prompt) and the Stop hook already carry it;
for Codex and Grok, the rendered screen.

Related

#22655 (readiness ignores Orca's Claude hooks), #25623 (Claude trust dialog breaks tui-idle), #23921 (agentWait
only on terminal show).

Activity

  1. AmethystLiang commented on Oct 6, 2026

    @AmethystLiang
    Contributor

    Thanks for reporting. Looking into it

  2. nwparker commented on Oct 25, 2026

    @nwparker
    Contributor

    Checked on current main: Claude and Codex folder-trust dialogs now report agentWait {source:'prompt-text', reason:'agent-trust-workspace'} (fixed by #29488; the stale Codex block by #33485), and structured questions (AskUserQuestion, request_user_input, ask_user_question) report through hooks as {source:'hook'}. Still open: Grok's trust dialog (not verified — needs a signed-in account) and plain-text questions at the end of a turn, which read as idle on purpose and need a product decision. Leaving this open for those two.

  3. nwparker commented on Oct 26, 2026

    @nwparker
    Contributor

    Visual check on current main (bb47718fbec): hidden dev Orca, Claude Code 2.1.310, Codex 0.164.0 (mock model), isolated config dirs.

    ELI5: agentWait is Orca's flag for "this agent is waiting for you". When an agent shows a menu, such as "do you trust this folder?", Orca now sees the menu and raises the flag. That part is fixed. When an agent just asks a question in normal text and stops, Orca still treats the turn as finished, so the flag stays off. Grok is still unchecked because its folder-trust screen only shows after sign-in, and we don't have a Grok account.

    Fixed: startup trust dialog (Claude, Codex)

    Launched with orca terminal create --command claude / --command codex in a folder that isn't trusted yet:

    Claude trust dialog
    Codex trust dialog

    claude  agentWait: {"source":"prompt-text","reason":"agent-trust-workspace"}
    codex   agentWait: {"source":"prompt-text","reason":"agent-trust-workspace","since":1792983338988}
    

    Structured question tools (AskUserQuestion, request_user_input, ask_user_question) report {source:"hook"}. That was covered in the earlier comment and not re-shot here.

    Still open: a plain-text question at the end of a turn

    Prompt: "Ask me whether the file should be red or blue, then wait for my answer." Codex replies with a question and ends its turn. The sidebar shows it as done (green check), and the CLI says nobody is waiting:

    Codex plain-text question shows as done

    codex   agentWait: null
    

    This is deliberate today: a turn that ends with a question looks the same as any finished turn. Changing it needs a product decision, either guessing from the text or relying on hooks.

    Still open: Grok

    Not verified. In a fresh config, Grok 1.0.62 shows its browser sign-in screen before any folder-trust dialog, so we need a signed-in account to check it.

    Side note: in the desktop app, the trust-dialog panes above have no "waiting" badge in the sidebar. The fix shows up in agentWait (CLI and orchestration), not in the sidebar.

  4. nwparker commented on Oct 27, 2026

    @nwparker
    Contributor

    Thanks for the detailed side-by-side report! Status update:

    Closing this. If Grok's trust dialog or question tool still doesn't show as waiting on the latest Orca, please open a new issue with the Grok version and we'll look.

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

Metadata

Metadata

Assignees

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