mirror of
https://github.com/thedotmack/claude-mem.git
synced 2026-09-20 04:23:02 +08:00
a8cf671648
Test-suite repair:
- Fix cross-suite mock.module contamination: polluting files (worker-api-endpoints,
hook-execution-e2e, file-context, chroma-mcp-manager-*, summarize-*) now snapshot
and restore real modules in afterAll, making the suite order-independent (17 fails).
- Align stale tests to current contracts (parser {valid,observations[],summary} API,
worker-spawner WorkerStartResult, welcome-card v3 key, haiku default model, .mcp.json
removal, claude-md mock).
Product fixes:
- plan-09: SchemaRepair.ts + Database.openWithSchemaRepair() — self-heal malformed
on-disk schema (orphaned index / dropped column) via sqlite3 .recover before PRAGMA,
preserving data. Migrations re-establish canonical schema. (#2433 groundwork)
- Welcome-hint flag now reads env before cached settings (env always wins).
- Replace console.* with logger.* in background services (plugin-state, project-filter,
worktree, smart-file-read/parser, CorpusRoutes).
Remaining 7 failures are openclaw Observation I/O tests, addressed in plan-08.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>