Show 'In-memory' instead of 'File: undefined' for --no-session mode
This commit is contained in:
@@ -2207,7 +2207,7 @@ export class InteractiveMode {
|
|||||||
const stats = this.session.getSessionStats();
|
const stats = this.session.getSessionStats();
|
||||||
|
|
||||||
let info = `${theme.bold("Session Info")}\n\n`;
|
let info = `${theme.bold("Session Info")}\n\n`;
|
||||||
info += `${theme.fg("dim", "File:")} ${stats.sessionFile}\n`;
|
info += `${theme.fg("dim", "File:")} ${stats.sessionFile ?? "In-memory"}\n`;
|
||||||
info += `${theme.fg("dim", "ID:")} ${stats.sessionId}\n\n`;
|
info += `${theme.fg("dim", "ID:")} ${stats.sessionId}\n\n`;
|
||||||
info += `${theme.bold("Messages")}\n`;
|
info += `${theme.bold("Messages")}\n`;
|
||||||
info += `${theme.fg("dim", "User:")} ${stats.userMessages}\n`;
|
info += `${theme.fg("dim", "User:")} ${stats.userMessages}\n`;
|
||||||
|
|||||||
Reference in New Issue
Block a user