2079
return;
2080
}
2081
>
await this._sessionSequencer.queue(context.sessionId, async () => {
copilotAgent.ts
2082
>
await this._activeClients.get(context.session)?.pluginController.retryFailedClientSyncIfNeeded();
2083
>
2084
>
// First message on a provisional session: materialize the SDK
2085
>
// session, worktree, and on-disk metadata before continuing. The
2086
>
// prompt is forwarded so a worktree-isolated session can derive
2087
>
// its branch-name hint from the user's first message.
2088
>
let entry: CopilotAgentSession | undefined;
2089
>
if (this._provisionalSessions.has(context.sessionId)) {
2090
entry = await this._materializeProvisional(context.sessionId, workingDirectory);
2091
} else {