Commit ec059ec
xin
fix(compaction): forward abortSignal through delegateCompactionToRuntime bridge
When a user presses the stop button during auto-compaction, the abort
signal cancels the wait but the compaction LLM call continues in-flight
and writes its result to the session transcript. This causes model
confusion as the model receives only a compaction summary instead of
the full context.
The bridge gap: delegateCompactionToRuntime forwarded sessionId,
sessionFile, tokenBudget, and other params, but not abortSignal. The
runtime already accepts this field in CompactEmbeddedAgentSessionParams,
but it was never populated by the delegate.
Fix: forward params.abortSignal so the runtime can properly abort
compaction when the stop button or safety timeout fires.
Closes #898681 parent 0314819 commit ec059ec
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
| 438 | + | |
437 | 439 | | |
438 | 440 | | |
439 | 441 | | |
| |||
448 | 450 | | |
449 | 451 | | |
450 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
451 | 472 | | |
452 | 473 | | |
453 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
0 commit comments