docs: 记录上下文压缩集成修复

This commit is contained in:
2026-08-15 09:18:04 +08:00
parent 7a811590c4
commit cd48226a5f
3 changed files with 10 additions and 2 deletions

View File

@@ -186,6 +186,9 @@ Gate result:
- On 2026-08-15, formed the reviewed context-compaction implementation into source commit `fd9b5b46a913c515e94e4e26f185d43866c2581f`; its parent is exactly current local `main` (`953b0f4`) and the source worktree is clean.
- Started a normal `--no-ff --no-commit` merge of `fd9b5b4` into local `main`; Git reported no textual conflicts. The source task record remains unchanged on `fd9b5b4` and its feature branch and is excluded from the `main` result to preserve task-document ownership boundaries.
- Promoted the accepted compaction facts into canonical current-state, module map, data flow, evidence, and upgrade commitments: compaction is a persistent per-session transcript event, completed status is monotonic, and `session.compacted` cannot end the run or release queued prompts.
- Created no-ff merge commit `1d0878bb5b18e9b17b147a4d43ea0861913da785` with `953b0f4` as first parent and source `fd9b5b4` as second parent.
- The first independent integration review returned `FAIL` on two uncovered edges: HTTP polling-only idle could release the run while leaving its compaction running, and cold busy hydration could misclassify a historical compaction Part as current.
- Closed both findings in `7a811590c4943b7b1b7ea5f3b4d3ce3ce05622a5`: compact polling idle now completes only the matching `runID + generation` event before queue release, and cold hydration keeps a native Part running only when current transcript state provides a matching running identity. Historical compactions remain completed during a later ordinary busy run.
## Verification
@@ -229,6 +232,11 @@ Gate result:
- 2026-08-15 `pnpm run build:vite` — Renderer, Electron Main, and Preload production builds passed; only existing chunk-size and mixed-import warnings remain.
- 2026-08-15 Electron E2E selection — `tests/e2e/opencode-slash-commands.spec.ts` passed 3/3, including the manual compaction running-to-completed timeline transition.
- 2026-08-15 staged/unstaged whitespace checks and project-document structure passed; task-aware drift passed after retaining the source task record only on the feature branch.
- Post-review focused selection — 3 files / 239 tests passed, including polling-only idle completion, queued prompt release, cold historical hydration, realtime native Part preservation, and completed-state monotonicity.
- Post-review `pnpm test` — 156 files / 1715 tests passed.
- Post-review `pnpm run typecheck` and `pnpm run lint:check` — passed; lint retained only the same 6 warnings outside changed files.
- Post-review `pnpm run build:vite` — Renderer, Electron Main, and Preload passed with only existing warnings.
- Post-review Electron E2E selection — 3/3 passed.
## Follow-ups