Skip to content

Commit 411cf4c

Browse files
authored
Merge pull request #2458 from microsoft/connor4312/281633
edits: fix hydrated edits from background sessions missing stops
2 parents 758c9c0 + 550d198 commit 411cf4c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches:
99
- main
1010
- 'release/*'
11+
- '0.34/sessions'
1112

1213
permissions:
1314
contents: read

src/extension/agents/copilotcli/common/copilotCLITools.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,14 @@ export function buildChatHistoryFromEvents(sessionId: string, events: readonly S
384384
const editId = details?.toolIdEditMap ? details.toolIdEditMap[toolCall.toolCallId] : undefined;
385385
const editedUris = getAffectedUrisForEditTool(toolCall);
386386
if (isCopilotCliEditToolCall(toolCall) && editId && editedUris.length > 0) {
387+
responsePart.presentation = 'hidden';
388+
currentResponseParts.push(responsePart);
387389
for (const uri of editedUris) {
388390
currentResponseParts.push(new ChatResponseMarkdownPart('\n````\n'));
389391
currentResponseParts.push(new ChatResponseCodeblockUriPart(uri, true, editId));
390-
currentResponseParts.push(new ChatResponseMarkdownPart('\n````\n'));
391392
currentResponseParts.push(new ChatResponseTextEditPart(uri, []));
392393
currentResponseParts.push(new ChatResponseTextEditPart(uri, true));
394+
currentResponseParts.push(new ChatResponseMarkdownPart('\n````\n'));
393395
}
394396
} else {
395397
currentResponseParts.push(responsePart);

src/extension/vscode.proposed.chatParticipantAdditions.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ declare module 'vscode' {
105105
isComplete?: boolean;
106106
toolSpecificData?: ChatTerminalToolInvocationData;
107107
fromSubAgent?: boolean;
108+
presentation?: 'hidden' | 'hiddenAfterComplete' | undefined;
108109

109110
constructor(toolName: string, toolCallId: string, isError?: boolean);
110111
}

0 commit comments

Comments
 (0)