Skip to content

Commit afef667

Browse files
committed
test(store): add async race coverage for chat store
- Add Vitest test harness and npm test scripts for frontend store tests - Add chatStore race tests for session-switch document loads - Add cancel timeout tests covering session switch and stream:done cleanup - Record completion of async race coverage block in implementation map Tests: npx tsc --noEmit && npm run test && npm run build && cd src-tauri && cargo fmt --check && cargo clippy --all-targets --all-features -- -D warnings && cargo test && cargo build
1 parent a94a22a commit afef667

5 files changed

Lines changed: 1596 additions & 3 deletions

File tree

IMPLEMENTATION_MAP.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,4 +550,18 @@ Scope:
550550
4. Update docs so pack consumers understand validation fields.
551551

552552
Status:
553-
- Started 2026-02-07.
553+
- Completed 2026-02-07.
554+
555+
### Block B: Async Race Integration Coverage (Frontend/Tauri)
556+
557+
Objective:
558+
- Add targeted integration-style tests around frontend store async race paths that previously caused stale-state and stuck-stream regressions.
559+
560+
Scope:
561+
1. Add frontend test harness for store-level async/event tests.
562+
2. Cover `loadDocuments` session-switch race (must not apply stale results).
563+
3. Cover `cancelResponse` safety timeout behavior across session switches.
564+
4. Cover `stream:done` timeout clearing to prevent false stream resets.
565+
566+
Status:
567+
- Completed 2026-02-07.

0 commit comments

Comments
 (0)