fix(acp): use single global event subscription and route by sessionID (#5628)

Co-authored-by: noamzbr <noamzbr@users.noreply.github.com>
Co-authored-by: noam-v <noam@bespo.ai>
This commit is contained in:
Noam Bressler
2026-01-18 01:29:42 -06:00
committed by GitHub
co-authored by noamzbr noam-v
parent d13c0ea915
commit bef1f66281
3 changed files with 758 additions and 272 deletions
+4
View File
@@ -13,6 +13,10 @@ export class ACPSessionManager {
this.sdk = sdk
}
tryGet(sessionId: string): ACPSessionState | undefined {
return this.sessions.get(sessionId)
}
async create(cwd: string, mcpServers: McpServer[], model?: ACPSessionState["model"]): Promise<ACPSessionState> {
const session = await this.sdk.session
.create(