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
Orchestration completion can remain unseen without an explicit inbox poll #8698
Local runtime was healthy: orca status --json reported ready / reachable: true
macOS, local dispatch
Observed
A dispatched worker emitted several heartbeat messages followed by worker_done. The coordinator conversation did not surface the completion until I explicitly ran:
orca orchestration check --unread --json
That check returned the prior heartbeats and the completion event together. The event timestamps in the result were represented without an offset (for example created_at: "2026-07-14 08:08:02"), while the host used CST / UTC+08:00, which also made perceived delay difficult to interpret.
Expected
Either:
worker_done and important heartbeats are proactively surfaced to the supervising coordinator session, or
the product/docs clearly state that coordinators must maintain a long-lived orca orchestration check --wait ... loop and expose an unambiguous notification when that loop is absent.
Timestamps should include an explicit UTC offset or be documented as UTC.
Why it matters
A coordinator can incorrectly report a task as still running after it has completed, especially during long device-verification flows.
Note
This report does not claim the runtime transport itself is definitely delayed: the same symptom may be caused by missing coordinator polling. The issue is that completion visibility and timestamp semantics are insufficiently clear to distinguish the two.
Confirming this on a separate incident with Orca v1.4.144 (orca serve on Linux, paired macOS client). A worker sent heartbeats and a final worker_done; the task was durably marked completed, but the coordinator did not see the completion until an explicit unread/inbox check.
The implementation explains the behavior: orchestration.send reconciles worker_done into the database and then calls notifyMessageArrived. That notification only wakes a recipient already blocked in check --wait; if no waiter exists at that instant, the message remains unread until the next poll (src/main/runtime/rpc/methods/orchestration.ts and src/main/runtime/orca-runtime.ts).
There was also a coordinator-side recovery miss in this incident: after interruption, it did not immediately sweep unread messages and task state. The deterministic workaround we are now using is:
Keep a filtered check --wait active for worker_done,escalation,decision_gate across the dispatch window.
Re-arm it immediately after every wake.
Sweep unread messages, inbox, and task state at every recovery/checkpoint boundary.
Preserve both taskId and dispatchId in completion messages, and re-resolve terminal handles after reconnects.
That workaround prevents silent misses, but it still requires a coordinator to maintain a long-lived poll loop. A durable push/inbox signal for important lifecycle messages would remove that obligation. PR #9167 appears to improve timestamps, but not this delivery gap.
Resolved by the merged delivery work: #9167 made timestamps unambiguous, #12988 surfaced durable Run-mailbox mail through coordinator pointers, and #14332 repaired the remaining stale-waiter, live-idle, PTY-retirement, and restart races without polling. SQLite mail remains authoritative and explicit orchestration check behavior is unchanged.
Activity
brennanb2025 commentedon Jul 17, 2026
Thanks for the report — taking a look!
e-jung commentedon Jul 17, 2026
Confirming this on a separate incident with Orca v1.4.144 (
orca serveon Linux, paired macOS client). A worker sent heartbeats and a finalworker_done; the task was durably marked completed, but the coordinator did not see the completion until an explicit unread/inbox check.The implementation explains the behavior:
orchestration.sendreconcilesworker_doneinto the database and then callsnotifyMessageArrived. That notification only wakes a recipient already blocked incheck --wait; if no waiter exists at that instant, the message remains unread until the next poll (src/main/runtime/rpc/methods/orchestration.tsandsrc/main/runtime/orca-runtime.ts).There was also a coordinator-side recovery miss in this incident: after interruption, it did not immediately sweep unread messages and task state. The deterministic workaround we are now using is:
check --waitactive forworker_done,escalation,decision_gateacross the dispatch window.taskIdanddispatchIdin completion messages, and re-resolve terminal handles after reconnects.That workaround prevents silent misses, but it still requires a coordinator to maintain a long-lived poll loop. A durable push/inbox signal for important lifecycle messages would remove that obligation. PR #9167 appears to improve timestamps, but not this delivery gap.
— @ericjung
brennanb2025 commentedon Aug 13, 2026
Resolved by the merged delivery work: #9167 made timestamps unambiguous, #12988 surfaced durable Run-mailbox mail through coordinator pointers, and #14332 repaired the remaining stale-waiter, live-idle, PTY-retirement, and restart races without polling. SQLite mail remains authoritative and explicit orchestration check behavior is unchanged.