microsoft/vscode · error · Error
Mission Control session creation failed: ${res.status} ${res
Error message
Mission Control session creation failed: ${res.status} ${res.statusText} - ${body} What it means
Error "Mission Control session creation failed: ${res.status} ${res.statusText} - ${body}" thrown in microsoft/vscode.
Source
Thrown at extensions/copilot/src/extension/chatSessions/copilotcli/node/missionControlApiClient.ts:102
repoId: number,
agentTaskId: string,
authOptions: McAuthOptions,
): Promise<McSessionCreateResult> {
const { url, headers } = await this._buildRequest(SESSIONS_PATH, authOptions);
const res = await this._fetcherService.fetch(url, {
callSite: 'copilotcli.mc.createSession',
method: 'POST',
headers,
json: {
owner_id: ownerId,
repo_id: repoId,
agent_task_id: agentTaskId,
},
timeout: REQUEST_TIMEOUT_MS,
});
if (!res.ok) {
const body = await res.text().catch(() => '');
throw new Error(`Mission Control session creation failed: ${res.status} ${res.statusText} - ${body}`);
}
const data = await res.json() as { id: string; task_id?: string };
return { id: data.id, taskId: data.task_id ?? agentTaskId };
}
/**
* Submit a batch of events to a Mission Control session, optionally
* acknowledging completed steering command ids in the same request.
*
* Returns `true` on success; logs and returns `false` on failure so the
* caller can re-queue events.
*/
async submitEvents(
sessionId: string,
events: readonly McEvent[],
completedCommandIds: readonly string[],
): Promise<boolean> {
try {View on GitHub (pinned to a94b963a32)
When it happens
Trigger: Thrown at extensions/copilot/src/extension/chatSessions/copilotcli/node/missionControlApiClient.ts:102 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/vscode@a94b963a32 (2026-08-12).
Data as JSON: /api/errors/df4c72711d575811.
Report an issue: GitHub.