[BUG] When model setting is "opusplan", Claude Code does not honor "--model" option when used with "--print"

Resolved 💬 3 comments Opened Sep 14, 2025 by dimfeld Closed Jan 7, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When the setting via /model is opusplan, Claude ignores the --model setting when running with --print.

This only happens when the configuration is "opusplan". If I use /model to set the model to Default or sonnet then the command-line override works properly.

What Should Happen?

Claude should always use the --model setting when provided, even when the regular config setting is opusplan.

Error Messages/Logs

Steps to Reproduce

To reproduce:

  1. Run /model and select opusplan
  2. Exit back to terminal. Run claude --model opus --print hello
  3. Open up the session again with claude -c
  4. Open up the detailed transcript and note that the model is sonnet.

Claude Model

Other

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

1.0.113 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

I'm on a max plan, if it matters.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗