Skip to content

feat: allow configuring the default companion model - #106

Open
t04dJ14n9 wants to merge 2 commits into
sendbird:mainfrom
t04dJ14n9:codex/configurable-default-model
Open

t04dJ14n9 wants to merge 2 commits into
sendbird:mainfrom
t04dJ14n9:codex/configurable-default-model

Conversation

@t04dJ14n9

@t04dJ14n9 t04dJ14n9 commented Sep 13, 2026

Copy link
Copy Markdown

Review, adversarial review, and rescue currently select opus whenever --model is omitted, requiring users who prefer another model to repeat the flag on each invocation.

Add CC_PLUGIN_CODEX_DEFAULT_MODEL at the shared default-model resolver, with precedence --model > environment setting > opus. Trim configured values and preserve the existing fallback for unset or blank values. The turn-end review gate continues to use Claude Code's own defaults.

Document configuration through Codex's shell_environment_policy.set. Update the public skills and internal runtime guide to omit --model when the user omits it, so the configured default can apply. Tests cover default selection, explicit precedence, whitespace handling, and forwarding the resolved model into CLI arguments.

Validation: the implementation previously passed npm run check (517 unit, 45 integration, and 23 E2E tests), including lint, typecheck, version, and changelog checks. The runtime-guide follow-up passes all 12 skill-contract tests and git diff --check. Tests ran with inherited desktop/plugin configuration isolated from the fixtures.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 13, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-13T17:04:42.317373Z f33a918 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f33a918240

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread skills/rescue/SKILL.md
Comment on lines +27 to +29
Companion defaults: model=CC_PLUGIN_CODEX_DEFAULT_MODEL (otherwise opus), and no effort. The companion forwards `--effort` only when the user passes it, so `fable`, `opus`, `sonnet`, and `haiku` each keep Claude Code's own effort default. Claude Code owns which effort levels each model supports.

When the user omits `--model`, omit it from the companion command so the configured default can apply.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Synchronize the rescue runtime's default-model contract

When CC_PLUGIN_CODEX_DEFAULT_MODEL is configured and rescue delegates to its forwarding worker, internal-skills/cli-runtime/runtime.md:27 still states that the companion defaults to opus. This leaves the internal execution contract inconsistent with both this public skill and the shared resolver, so update that runtime reference to describe the environment-variable fallback as part of this contract change.

AGENTS.md reference: AGENTS.md:L5-L5

Useful? React with 👍 / 👎.

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.

1 participant