[Feature request] Preserve the selected model when using /clear

Open 💬 0 comments Opened Jul 26, 2026 by Hamzablm

Feature request

Please add an option for /clear to preserve the model and reasoning settings currently selected in the conversation.

Current behavior

In the Codex CLI/TUI, selecting a model for a conversation and then running /clear starts a fresh conversation using the configured default model. This means the user must manually select the previous model again.

Requested behavior

When /clear starts a new conversation, Codex should offer a way to inherit the current conversation's model configuration, including at least:

  • selected model
  • reasoning effort

Possible implementations:

  • a setting such as preserve_model_on_clear = true;
  • a /clear --preserve-settings variant;
  • or simply inheriting the current model by default, while keeping the configured default for genuinely new sessions.

The behavior should be explicit and visible so users understand which model the new conversation is using.

Why this matters

Users often use /clear to remove accumulated context while continuing the same task or workflow. Having to reselect the model introduces friction and can accidentally change the quality, speed, or cost characteristics of the next conversation.

Environment

  • Codex CLI/TUI
  • Observed with Codex CLI 0.145.0

View original on GitHub ↗