Skip to content

chore: warn when Code Mode lacks model metadata - #29490

Merged
celia-oai merged 4 commits into
mainfrom
codex/warn-unsupported-code-mode
Jun 23, 2026
Merged

chore: warn when Code Mode lacks model metadata#29490
celia-oai merged 4 commits into
mainfrom
codex/warn-unsupported-code-mode

Conversation

@celia-oai

@celia-oai celia-oai commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • warn when Code Mode is enabled in configuration for a model that does not advertise a tool_mode
  • cover selector behavior, repeat turns, and the rendered TUI warning

Why

Models that predate the catalog-driven Code Mode rollout do not set ModelInfo.tool_mode. Local code_mode or code_mode_only feature overrides can still expose Code Mode to those models, which may degrade tool-use behavior without explaining the unsupported configuration to the user.

Explicit model selectors remain authoritative, and fallback-model metadata keeps its existing warning without adding a second warning.

Validation

saw this when running target/debug/codex --enable code_mode --model gpt-5.5:
Screenshot 2026-06-22 at 4 26 05 PM

@celia-oai
celia-oai force-pushed the codex/warn-unsupported-code-mode branch 2 times, most recently from 1d6ad38 to 3a4fa7e Compare June 22, 2026 23:18
@celia-oai celia-oai changed the title [codex] Warn when Code Mode lacks model metadata chore: warn when Code Mode lacks model metadata Jun 22, 2026
@celia-oai
celia-oai force-pushed the codex/warn-unsupported-code-mode branch from 3a4fa7e to 75288dd Compare June 22, 2026 23:59
@celia-oai
celia-oai requested a review from aibrahim-oai June 23, 2026 00:00
@celia-oai
celia-oai marked this pull request as ready for review June 23, 2026 00:01
@celia-oai
celia-oai requested a review from a team as a code owner June 23, 2026 00:01
Comment thread codex-rs/core/src/session/turn_context.rs Outdated
@celia-oai
celia-oai requested a review from aibrahim-oai June 23, 2026 01:01
@celia-oai
celia-oai enabled auto-merge (squash) June 23, 2026 01:12
@celia-oai
celia-oai merged commit 3310fc8 into main Jun 23, 2026
31 checks passed
@celia-oai
celia-oai deleted the codex/warn-unsupported-code-mode branch June 23, 2026 01:15
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants