You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
worker_done leaves dispatch lock active; re-dispatch to same terminal fails silently #6090
A worker's worker_done completion signal does not release the dispatch lock on its terminal. The task stays open (still owns the terminal), so a later orca orchestration dispatch --to <sameTerminal> is rejected with Terminal … already has an active dispatch (…). The rejection is easy to miss — it lands in a truncated JSON tail — so the new task sits at status: ready, never injected, and the worker idles indefinitely.
Behavior
Worker completes task A, emits worker_done.
Coordinator dispatches follow-up task B to the same worker terminal.
Dispatch returns Terminal … already has an active dispatch (…) because task A still holds the lock (completion signal ≠ task closed).
In practice the error is silent (truncated tail) → task B stuck ready, worker idle.
Repro
Dispatch task A to a worker terminal with --inject.
Worker finishes and emits worker_done.
Dispatch task B --to the same terminal.
Observe the rejection and task B stuck at status: ready.
Workaround
Explicitly close the prior task, then re-dispatch:
Related: the orcastrate coordinator spec now documents this gotcha + the task-update --status completed workaround as a guardrail — see PR #6036 (commit 3ae397d). That's a behavior-neutral doc note; the underlying fix (auto-close on worker_done vs. surfacing the dispatch rejection loudly) is still this issue's call.
Activity
zaridan commentedon Jun 22, 2026
Related: the orcastrate coordinator spec now documents this gotcha + the
task-update --status completedworkaround as a guardrail — see PR #6036 (commit 3ae397d). That's a behavior-neutral doc note; the underlying fix (auto-close onworker_donevs. surfacing the dispatch rejection loudly) is still this issue's call.fix(orchestration): release dispatch lock when worker_done is sent vi…
Jinwoo-H commentedon Jun 25, 2026
will be in next release, usually within 24 hours
fix(orchestration): release dispatch lock when worker_done is sent vi…