fix(coding-agent): normalize session names
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user