Commit d27347d
fix: heartbeat keepalive + session validation path fix
Two remaining gaps in v0.7.4:
1. Heartbeat: task_notification SDK events only fire on completion, not during
sub-agent execution. The stderr idle reset was therefore insufficient for
long Task waits. Agent-runner now writes a keepalive marker to stdout every
2 minutes — container-runner resets idle timer on any stdout data, so long
Task waits no longer trigger false stall timeouts.
2. Session validation path: the leading slash in the CWD was being stripped
(.replace(/^-/, '')) when constructing the session .jsonl path, causing
validation to always miss the file. Claude Code keeps the leading dash in
the project directory name (-Users-ziggy-nanoclaw-groups-main), fixed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d41e32c commit d27347d
3 files changed
Lines changed: 33 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
369 | 372 | | |
370 | | - | |
| 373 | + | |
371 | 374 | | |
372 | 375 | | |
373 | 376 | | |
| |||
593 | 596 | | |
594 | 597 | | |
595 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
596 | 614 | | |
597 | 615 | | |
598 | 616 | | |
| |||
644 | 662 | | |
645 | 663 | | |
646 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
647 | 669 | | |
648 | 670 | | |
649 | 671 | | |
| |||
705 | 727 | | |
706 | 728 | | |
707 | 729 | | |
| 730 | + | |
708 | 731 | | |
709 | 732 | | |
710 | 733 | | |
| |||
715 | 738 | | |
716 | 739 | | |
717 | 740 | | |
| 741 | + | |
| 742 | + | |
718 | 743 | | |
719 | 744 | | |
720 | 745 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments