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
@@ -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,