fix(agents): honor MODEL_PROVIDER for subagent routing#52
Merged
veerareddyvishal144 merged 1 commit intoFast-Editor:mainfrom Feb 18, 2026
Merged
Conversation
Bug fix: remove hardcoded azure-openai fallback in SubagentExecutor._callModel. Subagents now use config.modelProvider.type (with legacy provider fallback) for Claude/GPT family models. This prevents Task/subagent failures on non-Azure setups (e.g., moonshot/openai/openrouter).
Contributor
Author
|
Maintainer note: this is intentionally scoped to one bug-fix file (src/agents/executor.js) to keep review and rollback simple. Repro was non-Azure Task/subagent execution failing due to unintended Azure fallback. Validation run: npm run test:quick (pass). |
veerareddyvishal144
approved these changes
Feb 18, 2026
|
Thanks @Plaidmustache for the contribution. This really means a lot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes subagent routing so
Task/subagent execution honors configuredMODEL_PROVIDERinstead of defaulting to Azure.Type of Change
Changes Made
src/agents/executor.js.azure-openaiwith configured provider resolution:config.modelProvider?.type || config.modelProvider?.provider || nullTesting
Manual checks:
npm run test:quickpassed.Checklist
Notes