Repository navigation
Commit 1d2f907
committed
[None][fix] agent-flow hooks: a compaction summary does not start a turn
After Claude Code compacts a session, the continuation summary is a
user record (isCompactSummary) whose paths are elided as /.../. The
stop hook took it as the turn's prompt, so a planner that had written
its decision file was sent back once to write the elided path. Skip
compaction summaries and meta records (a stop hook's own feedback)
when finding the turn-starting user message.
Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>1 parent 70a9861 commit 1d2f907
2 files changed
Lines changed: 38 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | | - | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
492 | 525 | | |
493 | 526 | | |
494 | 527 | | |
| |||
0 commit comments