Skip to content

Commit aa241ae

Browse files
authored
Session can succeed with failures. (#7417)
1 parent 1f2bae6 commit aa241ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/github/copilotApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export interface SessionInfo {
276276
agent_id: number;
277277
logs: string;
278278
logs_blob_id: string;
279-
state: 'completed' | 'in_progress' | string;
279+
state: 'completed' | 'in_progress' | 'failed' | string;
280280
owner_id: number;
281281
repo_id: number;
282282
resource_type: string;

src/github/copilotRemoteAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ export class CopilotRemoteAgentManager extends Disposable {
13761376
responseParts.push(new vscode.ChatResponseMarkdownPart(currentResponseContent.trim()));
13771377
}
13781378

1379-
if (session.state === 'completed') {
1379+
if (session.state === 'completed' || session.state === 'failed' /** session can fail with proposed changes */) {
13801380
const fileChangesPart = await this.getFileChangesMultiDiffPart(pullRequest);
13811381
if (fileChangesPart) {
13821382
responseParts.push(fileChangesPart);

0 commit comments

Comments
 (0)