Commit 68c5f5d
committed
🤖 fix: delete partial in interruptStream when abandonPartial=true
Critical fix: interruptStream now deletes the partial when abandonPartial=true,
mirroring the IPC handler pattern. Without this, the partial would be committed
by streamWithHistory's unconditional commitToHistory call, reintroducing the
cancelled assistant response into history.
This completes the fix for editing compacting messages - now the cancelled
output is truly discarded instead of being appended after truncation.1 parent 753b35f commit 68c5f5d
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
379 | 388 | | |
380 | 389 | | |
381 | 390 | | |
| |||
0 commit comments