Skip to content

fix subagent default model config - #510

Merged
mssssss123 merged 4 commits into
OpenBMB:mainfrom
Gucc111:codex/fix-subagent-default-model
Aug 18, 2026
Merged

fix subagent default model config#510
mssssss123 merged 4 commits into
OpenBMB:mainfrom
Gucc111:codex/fix-subagent-default-model

Conversation

@Gucc111

@Gucc111 Gucc111 commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • parse agent.subagents.default and carry it into runtime config as an optional subagent baseline model
  • apply the configured subagent model and caps when building subagent sessions
  • preserve router/token-saver behavior by treating the setting as a baseline rather than a forced router override

Root Cause

The Web UI persisted the subagent default model under agent.subagents.default, but the backend parser and subagent fork path never read that field. Subagents therefore kept inheriting the parent agent model even when the UI showed a different configured model.

Validation

  • pnpm exec tsc -p tsconfig.json --noEmit
  • pnpm run build
  • node --test --test-timeout 60000 dist/tests/agent/sub/SubAgentSession.spec.js
  • Manual Gateway WebSocket validation against a running PilotDeck instance with main model and subagent default model set differently

@Gucc111
Gucc111 marked this pull request as ready for review August 17, 2026 11:04
@Gucc111
Gucc111 requested a review from mssssss123 August 17, 2026 11:05
@mssssss123
mssssss123 merged commit a58005d into OpenBMB:main Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants