Merge pull request #292431 from microsoft/copilot/remove-subagent-fallback

Remove hardcoded subagent name fallback from request construction
This commit is contained in:
Zhichao Li 2026-02-02 21:42:25 -08:00 committed by GitHub
commit bb8a476f91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -241,7 +241,7 @@ export class RunSubagentTool extends Disposable implements IToolImpl {
variables: { variables: variableSet.asArray() },
location: ChatAgentLocation.Chat,
subAgentInvocationId: invocation.callId,
subAgentName: mode?.name.get() ?? 'subagent',
subAgentName: mode?.name.get(),
userSelectedModelId: modeModelId,
userSelectedTools: modeTools,
modeInstructions,