From 9351b058f34973016a5d5973297d0567513e67a4 Mon Sep 17 00:00:00 2001 From: akbash Date: Fri, 14 Aug 2026 01:22:46 +0300 Subject: fix: reject prompts to blocked agents (#2790) * fix: reject prompts to blocked agents refs #2788 * docs: clarify agent prompt timing refs #2788 --------- Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> --- src/cli/spec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cli') diff --git a/src/cli/spec.rs b/src/cli/spec.rs index a1efdac4..ba454bfc 100644 --- a/src/cli/spec.rs +++ b/src/cli/spec.rs @@ -354,7 +354,7 @@ fn agent_command() -> Command { .help("Fail after this many milliseconds"), ) .after_help( - "When submission starts from a non-working state, --wait first requires an observed state change within 5000ms; otherwise it returns agent_prompt_stalled. A shorter --timeout returns timeout instead. It then matches idle, done, or blocked by default, or any exact --until state. It does not track turns: if the agent is already working, that active turn's completion may match. Without --timeout, the settled-state wait is indefinite.", + "If the agent is already blocked, submission is rejected with agent_blocked before any input is sent. When an accepted submission starts from another non-working state, --wait first requires an observed state change within 5000ms; otherwise it returns agent_prompt_stalled. A shorter --timeout returns timeout instead. It then matches idle, done, or blocked by default, or any exact --until state. It does not track turns: if the agent is already working, that active turn's completion may match. Without --timeout, the settled-state wait is indefinite.", ), ) .subcommand( -- cgit v1.2.3