Cato and Claude Opus 5
aa287aa2cf
fix(hosted): a one-shot runner drains its work before it exits, so the thread hears ( #721 )
...
A hosted dispatch ran, Hermes did the task, the run closed `done/success`
with its summary — and the conversation that asked for it never heard a word.
Nothing errored. Nothing logged.
`updateOrchestrationRun` fires `void notifyRunClosed(...)` — its contract is
never to slow a close — and that call is what writes the outcome turn. The web
server outlives such a promise for free. `hosted-runner.ts --once` is a
45-second cron tick: it drained the command and called `process.exit(0)`
while the write was still in flight.
- settle-background-work.ts: a bounded drain window (5s,
HOSTED_RUNNER_DRAIN_MS), paid only by a tick that actually drained
something. A window rather than a promise registry, because the void-call is
this codebase's convention at dozens of sites and threading bookkeeping
through all of them to repair one process boundary is the larger change.
- loki-loop-e2e.ts now reads the run's state when no turn arrives, so the two
halves can never be confused again: a CLOSED run with no turn is a lost
notification (the work happened); an OPEN one is a stuck builder. That
distinction cost an hour today.
Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-09-15 01:08:42 -07:00
..
2026-08-16 09:41:51 +00:00
2026-09-05 17:04:53 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-05 10:49:10 +00:00
2026-08-13 17:37:04 +02:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-14 22:40:09 -07:00
2026-09-14 20:57:30 -07:00
2026-09-02 08:47:20 +00:00
2026-08-26 21:31:22 +00:00
2026-08-14 14:47:36 +00:00
2026-09-13 18:04:18 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-08-04 15:40:26 +02:00
2026-09-13 16:13:10 -07:00
2026-08-03 09:56:37 +02:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-11 12:58:34 -07:00
2026-09-10 13:14:10 -07:00
2026-09-10 16:57:14 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-27 19:18:54 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-14 23:18:42 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-11 02:41:20 -07:00
2026-09-04 13:50:19 +00:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-24 15:43:36 +00:00
2026-08-31 09:23:30 +00:00
2026-09-02 09:27:19 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-12 10:39:22 -07:00
2026-09-04 00:11:06 +00:00
2026-09-13 16:13:10 -07:00
2026-09-11 02:41:20 -07:00
2026-08-31 09:23:30 +00:00
2026-09-12 03:00:37 -07:00
2026-09-12 03:00:37 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 22:29:59 -07:00
2026-09-09 08:48:24 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 18:49:24 -07:00
2026-09-13 18:35:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-11 00:23:03 -07:00
2026-08-31 09:23:30 +00:00
2026-09-11 06:43:21 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-03 08:28:45 +02:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-02 08:47:20 +00:00
2026-09-14 22:43:29 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-12 02:28:36 -07:00
2026-09-15 01:08:42 -07:00
2026-09-13 18:58:54 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 06:39:39 -07:00
2026-09-12 02:28:36 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 18:49:24 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-05 17:04:53 +00:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-11 00:35:32 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-14 04:38:53 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-14 04:20:31 -07:00
2026-09-09 15:25:35 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-03 12:44:39 +00:00
2026-09-11 00:16:48 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-04 11:16:58 +00:00
2026-09-13 07:19:57 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-11 08:19:45 -07:00
2026-09-15 01:08:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 17:36:47 -07:00
2026-09-12 10:53:41 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-15 01:08:42 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-05 17:04:53 +00:00
2026-09-10 12:51:11 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-09-14 22:48:39 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-09-13 16:13:10 -07:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-09-05 17:04:53 +00:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00
2026-09-03 10:25:24 +00:00
2026-09-13 16:13:10 -07:00
2026-09-05 09:17:29 -07:00
2026-09-10 23:53:44 -07:00
2026-09-03 17:20:06 -07:00
2026-08-31 09:23:30 +00:00
2026-09-13 16:13:10 -07:00