Commit dbb14df
committed
fix(context-engine): forward abortSignal through delegation bridge to runtime compaction
delegateCompactionToRuntime built the CompactEmbeddedAgentSessionDirect
params object without forwarding params.abortSignal. The ContextEngine
compact() public API and CompactEmbeddedAgentSessionParams both carry an
optional abortSignal, but the delegate bridge silently dropped it.
When the user pressed stop during auto-compaction, the host aborted the
wait via the signal, but the in-flight compaction LLM call continued to
completion and wrote its summary to the session file. The next turn then
saw a compacted session (e.g. 239→4 messages) the user had not consented
to, causing model confusion about ongoing work and instructions.
Fixes #898681 parent e0ab71d commit dbb14df
2 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
450 | 476 | | |
451 | 477 | | |
452 | 478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments