From 5cc8da4dd5ca459a55b8ca650bad2a75dd6f6f37 Mon Sep 17 00:00:00 2001 From: Michelle Ma Date: Fri, 14 Aug 2026 14:38:49 -0700 Subject: [PATCH] copilot: recover the SDK conversation id from the default-chat backing after restart --- src/vs/platform/agentHost/node/copilot/copilotAgent.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/vs/platform/agentHost/node/copilot/copilotAgent.ts b/src/vs/platform/agentHost/node/copilot/copilotAgent.ts index bccfcf3263e..88c64224a5b 100644 --- a/src/vs/platform/agentHost/node/copilot/copilotAgent.ts +++ b/src/vs/platform/agentHost/node/copilot/copilotAgent.ts @@ -2311,10 +2311,6 @@ export class CopilotAgent extends Disposable implements IAgent { /** Resolves the Copilot SDK conversation id backing a session URI, falling back to the AH session id. */ private _sdkConversationId(session: URI): string { const sessionId = AgentSession.id(session); - // The persisted default-chat backing recovers the SDK id after a cold - // restart, before the session is resumed into a live entry (a rename can - // arrive in that window). Fresh sessions store the AH id here, so this is - // a no-op for them. return this._findSessionChat(session)?.sessionId ?? this._provisionalSessions.get(sessionId)?.sdkSessionId ?? this._chatBackings.get(buildDefaultChatUri(session))?.sdkSessionId