Repository navigation
Commit b022f0d
fix(server): failed wake continuation dispatch no longer drops later Claude wakes
When the continuation service failed to dispatch a plain (non-delegated)
wake, for example on a full disk, it logged and dropped the request
without calling clearIfCurrent. Claude's wake offer had no clearIfCurrent
anyway, so its per-thread latch stayed set and every later wake on that
CLI process was silently ignored. Muse had the same leak.
The dispatch-failed handler now calls clearIfCurrent for non-delegated
requests. Claude's offer supplies one that releases its latch only while
that request still owns it, so a stale failure after a process reset
cannot release a newer wake's latch and enqueue a duplicate run. ACP and
Pi already self-clear on dispatch failure, so the extra call does nothing
for them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 3449f71 commit b022f0d
3 files changed
Lines changed: 103 additions & 6 deletions
File tree
- apps/server/src/orchestration-v2
- Adapters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10310 | 10310 | | |
10311 | 10311 | | |
10312 | 10312 | | |
| 10313 | + | |
| 10314 | + | |
| 10315 | + | |
| 10316 | + | |
| 10317 | + | |
| 10318 | + | |
| 10319 | + | |
| 10320 | + | |
| 10321 | + | |
| 10322 | + | |
| 10323 | + | |
| 10324 | + | |
| 10325 | + | |
| 10326 | + | |
| 10327 | + | |
| 10328 | + | |
| 10329 | + | |
| 10330 | + | |
| 10331 | + | |
| 10332 | + | |
| 10333 | + | |
| 10334 | + | |
| 10335 | + | |
| 10336 | + | |
| 10337 | + | |
| 10338 | + | |
| 10339 | + | |
| 10340 | + | |
| 10341 | + | |
| 10342 | + | |
| 10343 | + | |
| 10344 | + | |
| 10345 | + | |
| 10346 | + | |
| 10347 | + | |
| 10348 | + | |
| 10349 | + | |
| 10350 | + | |
| 10351 | + | |
| 10352 | + | |
| 10353 | + | |
| 10354 | + | |
| 10355 | + | |
| 10356 | + | |
| 10357 | + | |
| 10358 | + | |
| 10359 | + | |
| 10360 | + | |
| 10361 | + | |
| 10362 | + | |
| 10363 | + | |
| 10364 | + | |
| 10365 | + | |
| 10366 | + | |
| 10367 | + | |
| 10368 | + | |
| 10369 | + | |
| 10370 | + | |
| 10371 | + | |
| 10372 | + | |
| 10373 | + | |
| 10374 | + | |
| 10375 | + | |
| 10376 | + | |
| 10377 | + | |
| 10378 | + | |
| 10379 | + | |
| 10380 | + | |
| 10381 | + | |
| 10382 | + | |
| 10383 | + | |
| 10384 | + | |
| 10385 | + | |
| 10386 | + | |
| 10387 | + | |
| 10388 | + | |
| 10389 | + | |
| 10390 | + | |
| 10391 | + | |
| 10392 | + | |
| 10393 | + | |
| 10394 | + | |
| 10395 | + | |
10313 | 10396 | | |
10314 | 10397 | | |
10315 | 10398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4969 | 4969 | | |
4970 | 4970 | | |
4971 | 4971 | | |
4972 | | - | |
| 4972 | + | |
4973 | 4973 | | |
4974 | 4974 | | |
4975 | 4975 | | |
| |||
5421 | 5421 | | |
5422 | 5422 | | |
5423 | 5423 | | |
5424 | | - | |
| 5424 | + | |
5425 | 5425 | | |
5426 | 5426 | | |
5427 | 5427 | | |
| |||
7964 | 7964 | | |
7965 | 7965 | | |
7966 | 7966 | | |
| 7967 | + | |
| 7968 | + | |
7967 | 7969 | | |
7968 | | - | |
| 7970 | + | |
7969 | 7971 | | |
7970 | 7972 | | |
7971 | | - | |
7972 | | - | |
| 7973 | + | |
| 7974 | + | |
7973 | 7975 | | |
7974 | 7976 | | |
7975 | 7977 | | |
| |||
7992 | 7994 | | |
7993 | 7995 | | |
7994 | 7996 | | |
| 7997 | + | |
| 7998 | + | |
| 7999 | + | |
| 8000 | + | |
| 8001 | + | |
| 8002 | + | |
| 8003 | + | |
| 8004 | + | |
| 8005 | + | |
| 8006 | + | |
7995 | 8007 | | |
7996 | 8008 | | |
7997 | 8009 | | |
| |||
10575 | 10587 | | |
10576 | 10588 | | |
10577 | 10589 | | |
10578 | | - | |
| 10590 | + | |
10579 | 10591 | | |
10580 | 10592 | | |
10581 | 10593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
| 279 | + | |
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
| |||
0 commit comments