Merge pull request #5999 from haoqixu/fix-5996

fix(coding-agent): normalize session names
This commit is contained in:
Mario Zechner
2026-06-23 15:15:52 +02:00
committed by GitHub
5 changed files with 55 additions and 3 deletions
@@ -5344,8 +5344,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();
}