mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 18:01:22 +00:00
createBranchedSession() wrote the file and set flushed=true even when the branched path had no assistant message. The next _persist() call saw no assistant, reset flushed=false, and the subsequent flush appended all in-memory entries to the already-populated file, duplicating the header and entries. Fix: defer file creation when the branched path has no assistant message, matching the newSession() contract. _persist() creates the file on the first assistant response. closes #1672 |
||
|---|---|---|
| .. | ||
| build-context.test.ts | ||
| file-operations.test.ts | ||
| labels.test.ts | ||
| migration.test.ts | ||
| save-entry.test.ts | ||
| tree-traversal.test.ts | ||