codex - 💡(How to fix) Fix /model persists current selection to config.toml; clarify or make session-scoped

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

What I observed

When switching model with /model in the TUI, the selected model is written to ~/.codex/config.toml.

I had expected /model to behave as a session control (temporary switch), while config.toml is usually treated as a persistent default.

Why this is a problem

  • Unexpected global side effect from a session command
  • Low-risk one-off model experimentation can silently change future sessions
  • Harder to reason about model behavior across sessions

Reproduction

  1. Start Codex
  2. Run /model and select a different model
  3. Confirm ~/.codex/config.toml contains updated model

Expected behavior

  • Keep /model session-scoped by default, or
  • Make persistence explicit and documented

Suggested fix

  • Add an explicit scope contract for /model (session vs persisted)
  • If persistence is intended, make it obvious in UI/docs and provide explicit save semantics (e.g. /model --save)
  • If session-scoped is intended, revert persistent write to config.toml

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

  • Keep /model session-scoped by default, or
  • Make persistence explicit and documented

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING