fix(coding-agent): emit session name changes to extensions

This commit is contained in:
Alexey Zaytsev
2026-06-30 00:38:06 -05:00
parent 927e98068c
commit 726a9c526c
6 changed files with 49 additions and 1 deletions
@@ -2683,7 +2683,9 @@ export class AgentSession {
*/
setSessionName(name: string): void {
this.sessionManager.appendSessionInfo(name);
this._emit({ type: "session_info_changed", name: this.sessionManager.getSessionName() });
const event = { type: "session_info_changed", name: this.sessionManager.getSessionName() } as const;
this._emit(event);
void this._extensionRunner.emit(event);
}
// =========================================================================