mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
fix(coding-agent): fork writes to new session file, not parent (fixes #1242)
- Store previousSessionFile before creating branched session - Update sessionFile after writing new branch file - Pass parentSession when forking from first message - Add --local to git config in tests to prevent repo escape
This commit is contained in:
parent
b1c2c95f23
commit
13ac63c3cd
3 changed files with 9 additions and 6 deletions
|
|
@ -2370,7 +2370,7 @@ export class AgentSession {
|
|||
this._pendingNextTurnMessages = [];
|
||||
|
||||
if (!selectedEntry.parentId) {
|
||||
this.sessionManager.newSession();
|
||||
this.sessionManager.newSession({ parentSession: previousSessionFile });
|
||||
} else {
|
||||
this.sessionManager.createBranchedSession(selectedEntry.parentId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue