#6385 [GUI] preserve completed summaries on context retry
open · @Held0fTheWelt · 0 コメント · GitHub で見る
Setup & installModels & quantsWindows
本文
## Problem and result Compaction can send an old conversation to the model in several pieces. When a later piece is refused for exceeding the context window, the retry starts over and sends pieces the model has already summarized. The retry now carries the completed summary and resumes at the first unsummarized message. ## Related discussion The broader Harness discussion is #6342. This PR addresses the retry in the existing compaction path. ## Approach Track the number of original messages represented in the running summary. After a size refusal, split the unsummarized suffix from the original input with the existing smaller budget. The last piece still supplies the final summary and the retry limit is unchanged. ## Validation **Passed:** - Windows, Node v24.15.0, commit `7b9b9565d`. `node --test app/host/tests/agent-context.test.mjs` passed 15 tests. - The scripted refusal case accepted messages 1–2, refused 3–4, and retried 3, 4, 5, and 6 in smaller requests with the preceding summary. It produced one final summary containing all six parts. - `git diff --check upstream/main...HEAD` returned 0. **Failed:** - The first test run while assembling the branch exposed a missing test import. The submitted commit includes that import and the rerun passed. **Not run:** - Eight integration cases require a staged Harness. This worktree had no `STRATA_HARNESS_DIR`. GPU and desktop installer checks were not part of this local run. ## Limits The regression case uses a scripted model stream. It checks the requests and resulting summary, without measuring model quality or performance.
関連リンク
インストール・モデル・リリースへのサイト内リンク。