Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches:
- main
- 'release/*'
- '0.34/sessions'

permissions:
contents: read
Expand Down
4 changes: 3 additions & 1 deletion src/extension/agents/copilotcli/common/copilotCLITools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ declare module 'vscode' {
isComplete?: boolean;
toolSpecificData?: ChatTerminalToolInvocationData;
fromSubAgent?: boolean;
presentation?: 'hidden' | 'hiddenAfterComplete' | undefined;

constructor(toolName: string, toolCallId: string, isError?: boolean);
}
Expand Down