fix(coding-agent): normalize session names

This commit is contained in:
haoqixu
2026-06-23 19:14:02 +08:00
parent 0ab2aa86af
commit 7c1ef87756
3 changed files with 47 additions and 2 deletions
@@ -5340,8 +5340,12 @@ export class InteractiveMode {
}
this.session.setSessionName(name);
const sessionName = this.sessionManager.getSessionName();
if (sessionName !== name) {
this.showWarning(`Session name was normalized from ${JSON.stringify(name)} to ${JSON.stringify(sessionName)}`);
}
this.chatContainer.addChild(new Spacer(1));
this.chatContainer.addChild(new Text(theme.fg("dim", `Session name set: ${name}`), 1, 0));
this.chatContainer.addChild(new Text(theme.fg("dim", `Session name set: ${sessionName ?? name}`), 1, 0));
this.ui.requestRender();
}