fix: scope observation to current turn

Require assistant natural language after the latest user message so a completed prompt cannot reuse historical replies when queuing the observation snapshot.
This commit is contained in:
2026-08-24 12:55:01 +08:00
parent 7a15b1b49c
commit 16f5c57f17
3 changed files with 65 additions and 7 deletions

View File

@@ -120,13 +120,14 @@
noise remains.
- `pnpm run typecheck`: passed, including after the pinned-pnpm dependency rebuild.
- `pnpm exec eslint . --quiet`: passed.
- Full unit suite after planner fixes: 174 files passed; 1495 tests passed,
2 skipped (1497 total).
- Full unit suite after planner fixes: 174 files passed; 1496 tests passed,
2 skipped (1498 total).
- Pressure suite: 1 file and 1 test passed.
- Focused post-review suite: 3 files and 33 tests passed for migration,
- Focused post-review suite: 3 files and 34 tests passed for migration,
session-observation sync, and Conversation store settlement behavior. It covers
valid-v2 no-legacy-read, unknown/modified Agent backup, live ordinary-prompt
settlement, no hydrate/follow-up replay, and assistant-natural-language gating.
settlement, no hydrate/follow-up replay, and current-turn assistant natural-
language gating that cannot reuse an older assistant reply.
- Electron E2E: 3 tests passed for first Pi conversation latency/submit ordering,
Pi product UI, and bundled Skill project configuration.
- `pnpm run build:vite`: passed (Renderer, Electron Main, Preload, and utility).