claude -c / --continue does not preserve --model from prior session

Status Fixed / completed
Reported on v2.1.138
Maintainer reply None cached
Activity 3 comments · opened May 9, 2026 · closed May 11, 2026

Version

2.1.138 (also reproduced in earlier 2.1.x)

Summary

claude -c / claude --continue resumes a session's conversation history but silently drops the model setting, reverting to the account default.

Steps to reproduce

  1. Start a session with a non-default model:

``
cd ~/some-project
claude --model haiku-4-5
``

  1. Send a few prompts and get responses.
  2. /exit
  3. From the same cwd, run claude -c

Expected

Continuing the session restores the session config — including the model — exactly as it was. (Conversation continuity should imply model continuity.)

Actual

Conversation history resumes correctly, but the model silently reverts to the account's default (e.g. opus on Max plan). The user only notices indirectly via response style, latency, or cost changes.

Why it matters

Any tooling that batch-restarts sessions (e.g. across a claude update) loses per-session model config silently. The fix should be cheap: the model is already recorded per-message in the JSONL transcript, so it could be inferred at resume time.

Workaround

Pass --model <name> explicitly when continuing:

claude -c --model haiku-4-5

But this requires the user / tooling to know what model the prior session was on, which is awkward.

View original on GitHub ↗

3 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/50663
  2. https://github.com/anthropics/claude-code/issues/20745
  3. https://github.com/anthropics/claude-code/issues/56585

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

figital · 5 months ago

closing. this may have been a dupe of https://github.com/anthropics/claude-code/issues/50663

but it also may have just been fixed. i am not noticing this behavior in 2.1.138.

github-actions[bot] · 3 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.