feat(coding-agent): add switchSession to Extension API (#1191)

Allows extension commands to programmatically switch to a different session file via ctx.switchSession(sessionPath).

fixes #1187
This commit is contained in:
Juan Ibiapina 2026-02-02 18:03:26 +01:00 committed by GitHub
parent 0d934091f4
commit d0228412d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 24 additions and 0 deletions

View file

@ -1059,6 +1059,10 @@ export class InteractiveMode {
return { cancelled: false };
},
switchSession: async (sessionPath) => {
await this.handleResumeSession(sessionPath);
return { cancelled: false };
},
},
shutdownHandler: () => {
this.shutdownRequested = true;