Commit b6ed027
committed
🤖 fix: add context wrapper to post-compaction follow-up message
After compaction completes, the queued follow-up message was sent as raw
text without any context. This made it unclear to the model that this
message triggered compaction and that relevant context is in the summary.
The fix wraps non-default follow-up messages with a context note:
"(This was the message that triggered compaction - context is in the
summary above)"
The default resume sentinel ("Continue") is excluded since it's just a
signal to continue, not meaningful user content.
This is NOT a regression - the original implementation (dacc278, Nov 2025)
always sent follow-ups as raw text. This change improves upon that design.1 parent 5bc7135 commit b6ed027
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
599 | 612 | | |
600 | 613 | | |
601 | 614 | | |
| |||
0 commit comments