Commit 9c503bb
committed
fix: skip timeout compaction when run was aborted by user
When the user presses the stop button in the Control UI, the model
request times out. Previously, if context token usage exceeded 65%,
the timeout compaction mechanism would fire even though the run was
intentionally aborted — causing unnecessary compaction at an
inappropriate time.
Add !aborted check to the timeout compaction condition so that
user-initiated stops skip compaction entirely.1 parent 0793775 commit 9c503bb
2 files changed
Lines changed: 6 additions & 17 deletions
Lines changed: 5 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | 378 | | |
387 | 379 | | |
388 | 380 | | |
389 | | - | |
390 | | - | |
391 | | - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
392 | 385 | | |
393 | 386 | | |
394 | 387 | | |
| |||
531 | 524 | | |
532 | 525 | | |
533 | 526 | | |
534 | | - | |
535 | 527 | | |
536 | 528 | | |
537 | 529 | | |
| |||
541 | 533 | | |
542 | 534 | | |
543 | 535 | | |
544 | | - | |
545 | 536 | | |
546 | 537 | | |
547 | 538 | | |
| |||
582 | 573 | | |
583 | 574 | | |
584 | 575 | | |
585 | | - | |
586 | 576 | | |
587 | 577 | | |
588 | 578 | | |
| |||
592 | 582 | | |
593 | 583 | | |
594 | 584 | | |
595 | | - | |
596 | 585 | | |
597 | 586 | | |
598 | 587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1557 | 1557 | | |
1558 | 1558 | | |
1559 | 1559 | | |
1560 | | - | |
| 1560 | + | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | 1563 | | |
| |||
0 commit comments