Skip to content

Fix: Respect global + per-mode model overrides for collaboration modes - #9785

Closed
sonobo wants to merge 1 commit into
openai:mainfrom
sonobo:feature/collab-mode-config-overrides
Closed

sonobo wants to merge 1 commit into
openai:mainfrom
sonobo:feature/collab-mode-config-overrides

Conversation

@sonobo

@sonobo sonobo commented Jan 23, 2026

Copy link
Copy Markdown

This PR fixes #9783

When collaboration_modes is enabled, collaboration mode presets could override/ignore user-selected model and model_reasoning_effort (from config.toml and/or CLI overrides), leading to unexpected defaults when starting Codex or switching modes.

Changes

  • Add optional config.toml overrides for collaboration mode presets:
    • [collaboration_modes.{plan,pair_programming,execute}]
    • supported keys: model, model_reasoning_effort
  • Apply precedence when building collaboration mode presets:
    • built-in defaults < global config/CLI < per-mode overrides
  • Update JSON schema + docs
  • Add regression test covering precedence

Manual test

  • Start with --enable collaboration_modes and verify the active mode uses the configured model/effort and stays consistent when cycling modes.

- Add per-mode model + model_reasoning_effort overrides in config.toml (plan/pair_programming/execute)

- Apply precedence: built-in presets < global config/CLI < per-mode overrides

- Update schema/docs and add regression test
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@sonobo

sonobo commented Jan 23, 2026 •

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@etraut-openai

Copy link
Copy Markdown
Contributor

Thanks, but I think we'll pass on this.

This feature is still under active development, and we're making significant changes to it still.

@vietnt

vietnt commented Jan 27, 2026

Copy link
Copy Markdown

@etraut-openai so is there a work around to this problem? or simply not using colloboration_modes for now?

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.

collaboration_modes ignores configured model + reasoning effort (hardcoded presets always override user config)

4 participants