Files
cc-switch/src-tauri
Jason 2ff37a76f4 feat(codex): set a default sub-agent model and reasoning effort
The Codex provider form gains a sub-agent model field and a reasoning
effort picker, written to `[agents] default_subagent_model` and
`default_subagent_reasoning_effort` in the provider's config.toml.
Clearing a value removes the key, and an `[agents]` table left empty is
removed with it. The backend already treated both keys as key fields, so
switching providers swaps them and leaves the rest of `[agents]` alone.

In Aggregation mode the two keys are not written, as with Claude Code:
the row names the default provider's model, so a main agent moved to
another provider's aggregated model would send its sub-agents back to
the default provider. Sub-agents follow the main model instead.

When the model is outside the provider's model mapping the form says so
and offers to add it: Codex can't get its context window otherwise, and
routing that converts to Chat or Anthropic replaces unmapped models with
the default one. The field is hidden for Grok Build, official cards and
the aggregation layout.
2026-10-11 22:51:28 +08:00
..
2026-10-10 23:32:26 +08:00
2026-10-10 23:32:26 +08:00
2026-10-10 23:32:26 +08:00