co-mono/packages/coding-agent/src
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
..
cli fix(coding-agent): add offline startup mode and network timeouts (#1631) 2026-02-25 19:44:49 +01:00
core fix(coding-agent): prevent duplicate session headers when forking from pre-assistant entry 2026-02-27 22:18:26 +01:00
modes fix(coding-agent): ignore SIGINT while process is suspended (#1668) 2026-02-27 13:51:45 +01:00
utils fix(coding-agent): harden fd/rg bootstrap on windows 2026-02-26 00:19:43 +01:00
cli.ts Set coding agent CLI process title (#742) 2026-01-15 13:14:14 +01:00
config.ts chore(coding-agent): update share viewer url 2026-02-03 22:49:01 +01:00
index.ts refactor(coding-agent): move auth storage to backend abstraction 2026-02-17 19:57:21 +01:00
main.ts fix(coding-agent): add offline startup mode and network timeouts (#1631) 2026-02-25 19:44:49 +01:00
migrations.ts chore: remove deprecation comment from getToolsDir, add changelog entry for #470 2026-01-05 20:26:48 +01:00