Repository navigation
Commit dbb7aed
fix(server): a failed Claude turn no longer pins the session on a stale cron count
Scheduled work pins an idle session with no cap, but a turn that fails ends
through StopFailure, which reports no crons. The count from the turn before
then outlived a CronDelete and kept an empty Claude process alive forever.
Each turn now drops the previous count when it starts, so only its own Stop
hook can pin the session.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent d2a15a8 commit dbb7aed
2 files changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12379 | 12379 | | |
12380 | 12380 | | |
12381 | 12381 | | |
12382 | | - | |
| 12382 | + | |
12383 | 12383 | | |
12384 | 12384 | | |
12385 | 12385 | | |
| |||
12401 | 12401 | | |
12402 | 12402 | | |
12403 | 12403 | | |
12404 | | - | |
12405 | | - | |
| 12404 | + | |
| 12405 | + | |
12406 | 12406 | | |
12407 | 12407 | | |
12408 | 12408 | | |
| |||
12415 | 12415 | | |
12416 | 12416 | | |
12417 | 12417 | | |
12418 | | - | |
| 12418 | + | |
12419 | 12419 | | |
12420 | | - | |
| 12420 | + | |
12421 | 12421 | | |
12422 | 12422 | | |
12423 | 12423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6386 | 6386 | | |
6387 | 6387 | | |
6388 | 6388 | | |
6389 | | - | |
6390 | | - | |
| 6389 | + | |
| 6390 | + | |
6391 | 6391 | | |
6392 | 6392 | | |
6393 | 6393 | | |
| |||
12393 | 12393 | | |
12394 | 12394 | | |
12395 | 12395 | | |
| 12396 | + | |
| 12397 | + | |
12396 | 12398 | | |
12397 | 12399 | | |
12398 | 12400 | | |
| |||
0 commit comments