mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
Closes #5045, /new should not persist if original session was ephemeral
This commit is contained in:
parent
b7e721cb38
commit
ae7a885da2
1 changed files with 3 additions and 1 deletions
|
|
@ -232,7 +232,9 @@ export class AgentSessionRuntime {
|
|||
|
||||
const previousSessionFile = this.session.sessionFile;
|
||||
const sessionDir = this.session.sessionManager.getSessionDir();
|
||||
const sessionManager = SessionManager.create(this.cwd, sessionDir);
|
||||
const sessionManager = this.session.sessionManager.isPersisted()
|
||||
? SessionManager.create(this.cwd, sessionDir)
|
||||
: SessionManager.inMemory(this.cwd);
|
||||
if (options?.parentSession) {
|
||||
sessionManager.newSession({ parentSession: options.parentSession });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue