Mario Zechner
2f64df1e52
fix(coding-agent): prevent duplicate session headers when forking from pre-assistant entry
...
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
2026-02-27 22:18:26 +01:00
..
2026-01-24 03:34:40 +01:00
2026-02-27 22:18:26 +01:00
2026-02-17 19:57:21 +01:00
2026-02-17 19:57:21 +01:00
2026-02-17 19:57:21 +01:00
2026-02-17 19:57:21 +01:00
2026-01-12 00:09:33 +01:00
2026-02-25 19:44:49 +01:00
2026-02-17 19:57:21 +01:00
2026-01-06 11:59:09 +01:00
2026-01-31 23:24:10 +01:00
2026-02-02 00:23:12 +01:00
2026-01-05 01:43:35 +01:00
2026-02-17 19:57:21 +01:00
2026-02-08 15:53:17 +01:00
2025-12-31 02:24:24 +01:00
2026-01-24 01:43:34 +01:00
2026-02-17 19:57:21 +01:00
2026-02-27 21:04:00 +01:00
2026-01-16 00:31:53 +01:00
2026-02-12 21:28:06 +01:00
2026-02-22 14:57:58 +01:00
2026-01-14 02:46:49 +01:00
2026-02-23 00:57:36 +01:00
2026-02-27 21:00:25 +01:00
2026-02-22 14:40:36 +01:00
2026-02-07 03:30:28 +01:00
2026-02-12 21:28:06 +01:00
2026-02-25 19:44:49 +01:00
2026-01-29 22:58:22 +01:00
2026-01-13 17:53:11 +01:00
2026-01-16 12:08:57 +01:00
2026-02-24 23:50:55 +01:00
2025-12-09 14:44:13 +01:00
2026-02-04 13:27:54 +01:00
2026-02-01 02:20:35 +01:00
2026-01-25 19:42:34 +01:00
2026-02-01 19:03:38 +01:00
2026-01-25 19:42:34 +01:00
2026-02-01 19:03:38 +01:00
2026-02-17 00:08:32 +01:00
2026-02-23 00:59:10 +01:00
2026-02-04 14:20:24 +01:00
2025-12-22 00:23:01 +01:00
2026-01-08 18:52:33 +01:00
2026-01-13 13:03:04 +01:00
2026-01-25 19:08:52 +01:00
2026-02-01 13:23:52 +01:00
2025-12-05 11:59:39 +01:00
2026-02-17 19:57:21 +01:00