diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 38bd0e5ebd..261cd8aee8 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -8,6 +8,7 @@ on: branches: - main - 'release/*' + - '0.34/sessions' permissions: contents: read diff --git a/src/extension/agents/copilotcli/common/copilotCLITools.ts b/src/extension/agents/copilotcli/common/copilotCLITools.ts index 45695eb705..2611cf2f3a 100644 --- a/src/extension/agents/copilotcli/common/copilotCLITools.ts +++ b/src/extension/agents/copilotcli/common/copilotCLITools.ts @@ -384,12 +384,14 @@ export function buildChatHistoryFromEvents(sessionId: string, events: readonly S const editId = details?.toolIdEditMap ? details.toolIdEditMap[toolCall.toolCallId] : undefined; const editedUris = getAffectedUrisForEditTool(toolCall); if (isCopilotCliEditToolCall(toolCall) && editId && editedUris.length > 0) { + responsePart.presentation = 'hidden'; + currentResponseParts.push(responsePart); for (const uri of editedUris) { currentResponseParts.push(new ChatResponseMarkdownPart('\n````\n')); currentResponseParts.push(new ChatResponseCodeblockUriPart(uri, true, editId)); - currentResponseParts.push(new ChatResponseMarkdownPart('\n````\n')); currentResponseParts.push(new ChatResponseTextEditPart(uri, [])); currentResponseParts.push(new ChatResponseTextEditPart(uri, true)); + currentResponseParts.push(new ChatResponseMarkdownPart('\n````\n')); } } else { currentResponseParts.push(responsePart); diff --git a/src/extension/vscode.proposed.chatParticipantAdditions.d.ts b/src/extension/vscode.proposed.chatParticipantAdditions.d.ts index 86af47f60d..1ee0590c5c 100644 --- a/src/extension/vscode.proposed.chatParticipantAdditions.d.ts +++ b/src/extension/vscode.proposed.chatParticipantAdditions.d.ts @@ -105,6 +105,7 @@ declare module 'vscode' { isComplete?: boolean; toolSpecificData?: ChatTerminalToolInvocationData; fromSubAgent?: boolean; + presentation?: 'hidden' | 'hiddenAfterComplete' | undefined; constructor(toolName: string, toolCallId: string, isError?: boolean); }