change toolcall UI to not show an error (#2042)

This commit is contained in:
Aaron Munger
2025-11-17 18:57:23 +00:00
committed by GitHub
parent 48474b1ba8
commit d3d9ccb486
@@ -50,8 +50,11 @@ export class ChatReplaySessionProvider extends Disposable implements ChatSession
new ChatResponseTurn2([new ChatResponseMarkdownPart(step.result)], {}, 'copilot')
);
} else if (step.kind === 'toolCall') {
const toolCall = new ChatToolInvocationPart(step.toolName, '', false);
toolCall.isComplete = true;
toolCall.isConfirmed = true;
history.push(
new ChatResponseTurn2([new ChatToolInvocationPart(step.toolName, '', false)], {}, 'copilot')
new ChatResponseTurn2([toolCall], {}, 'copilot')
);
}
}