@@ -1431,8 +1431,8 @@ export class SessionManager {
|
||||
}
|
||||
|
||||
/** Create an in-memory session (no file persistence) */
|
||||
static inMemory(cwd: string = process.cwd()): SessionManager {
|
||||
return new SessionManager(cwd, "", undefined, false);
|
||||
static inMemory(cwd: string = process.cwd(), options?: NewSessionOptions): SessionManager {
|
||||
return new SessionManager(cwd, "", undefined, false, options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -225,7 +225,6 @@ function validateSessionIdFlags(parsed: Args): void {
|
||||
parsed.session ? "--session" : undefined,
|
||||
parsed.continue ? "--continue" : undefined,
|
||||
parsed.resume ? "--resume" : undefined,
|
||||
parsed.noSession ? "--no-session" : undefined,
|
||||
].filter((flag): flag is string => flag !== undefined);
|
||||
|
||||
if (conflictingFlags.length > 0) {
|
||||
@@ -259,7 +258,7 @@ async function createSessionManager(
|
||||
settingsManager: SettingsManager,
|
||||
): Promise<SessionManager> {
|
||||
if (parsed.noSession || parsed.help || parsed.listModels !== undefined) {
|
||||
return SessionManager.inMemory(cwd);
|
||||
return SessionManager.inMemory(cwd, parsed.sessionId !== undefined ? { id: parsed.sessionId } : undefined);
|
||||
}
|
||||
|
||||
if (parsed.fork) {
|
||||
|
||||
Reference in New Issue
Block a user