diff options
| author | akbash <akbash@herdr.dev> | 2026-08-14 01:22:46 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-14 01:22:46 +0300 |
| commit | 9351b058f34973016a5d5973297d0567513e67a4 (patch) | |
| tree | 6b31e2700258170685297e08c03084e21d459e44 /skills | |
| parent | 2075de5db083f1d1f4a9c67f6b36a8eeb250754e (diff) | |
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>
Diffstat (limited to 'skills')
| -rw-r--r-- | skills/herdr/SKILL.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skills/herdr/SKILL.md b/skills/herdr/SKILL.md index fafea549..494fe685 100644 --- a/skills/herdr/SKILL.md +++ b/skills/herdr/SKILL.md @@ -125,9 +125,9 @@ Submit work through the agent surface: herdr agent prompt reviewer "Review the current diff and report only actionable findings." --wait --timeout 120000 ``` -`agent prompt` atomically submits text and encoded Enter while honoring the pane's live bracketed-paste mode. For normal agent work, `--wait` is enough: it waits for the first settled `idle`, `done`, or `blocked` state. Do not repeat those defaults with `--until`. +`agent prompt` sends text, then encoded Enter after a short delay, while honoring the pane's live bracketed-paste mode. If the agent is already `blocked`, it returns `agent_blocked` without sending input; inspect the dialog and use `agent send-keys` for a deliberate response. For normal agent work, `--wait` is enough: it waits for the first settled `idle`, `done`, or `blocked` state reached after an accepted submission. Do not repeat those defaults with `--until`. -A prompt sent from a non-working state must produce an observed lifecycle change within five seconds. Otherwise Herdr returns `agent_prompt_stalled` instead of waiting indefinitely. This wait tracks lifecycle state, not an individual turn; if the agent is already working, completion of the active turn may satisfy it. +An accepted prompt sent from another non-working state must produce an observed lifecycle change within five seconds. Otherwise Herdr returns `agent_prompt_stalled` instead of waiting indefinitely; if the caller sets `--timeout` to five seconds or less, Herdr returns the normal `timeout` error instead. This wait tracks lifecycle state, not an individual turn; if the agent is already working, completion of the active turn may satisfy it. Use `--until` only for a state-specific workflow, such as waiting for an already-running agent to request input: |
