mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 07:47:23 +01:00
fix: update ChatToolInvocation to use chatStreamToolCallId if available, to align tool ids in core and the extension.
This commit is contained in:
committed by
Henning Dieterichs
parent
fb15457929
commit
b42442a4d0
@@ -583,7 +583,7 @@ export class LanguageModelToolsService extends Disposable implements ILanguageMo
|
|||||||
toolInvocation.transitionFromStreaming(preparedInvocation, dto.parameters, autoConfirmed);
|
toolInvocation.transitionFromStreaming(preparedInvocation, dto.parameters, autoConfirmed);
|
||||||
} else {
|
} else {
|
||||||
// Create a new tool invocation (no streaming phase)
|
// Create a new tool invocation (no streaming phase)
|
||||||
toolInvocation = new ChatToolInvocation(preparedInvocation, tool.data, dto.callId, dto.subAgentInvocationId, dto.parameters);
|
toolInvocation = new ChatToolInvocation(preparedInvocation, tool.data, dto.chatStreamToolCallId ?? dto.callId, dto.subAgentInvocationId, dto.parameters);
|
||||||
if (autoConfirmed) {
|
if (autoConfirmed) {
|
||||||
IChatToolInvocation.confirmWith(toolInvocation, autoConfirmed);
|
IChatToolInvocation.confirmWith(toolInvocation, autoConfirmed);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user