claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Session switching with /resume shows wrong conversation in CC

Open MaxFouTech opened this issue 1 year ago • 7 comments

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 resuming a session with /resume, the conversation shown to the user does not match the session actually loaded into the model’s context. This creates confusion because the assistant responds based on one session while the UI shows another.

What Should Happen?

The displayed conversation and the model’s context should always match the same selected session.

Error Messages/Logs


Steps to Reproduce

Steps to Reproduce

mkdir new_folder cd new_folder claude 1. Session ID 1 • User: say 1 • Assistant: 1 • User: say 2 • Assistant: 2 • User: /clear 2. Session ID 2 • User: say 3 • Assistant: 3 • User: say 4 • Assistant: 4 • User: /resume 3. Select the first session.

Expected Behavior • The user should see the conversation from Session ID 1 (say 1, say 2). • The assistant should use Session ID 1 as context.

Actual Behavior • The user sees the conversation from Session ID 2 (say 3, say 4). • But the model is actually loaded with Session ID 1 as context. • Example: • User: Repeat the last number • Assistant: 2 (from Session ID 1, not Session ID 2).

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.0.1

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

MaxFouTech avatar Sep 25 '25 09:09 MaxFouTech

That happened to me a couple of times now. I was sure it had switched but convinced myself that i just got mixed up, but didn't believe it. Nice to see it's a thing!

FlowTether avatar Sep 25 '25 12:09 FlowTether

Issue is still present in the version 1.0.126

MaxFouTech avatar Sep 26 '25 08:09 MaxFouTech

The issue has been reproduced with the version 1.0.48 The workaround is to use "claude -r" rather than "/resume" to switch between sessions.

MaxFouTech avatar Sep 26 '25 08:09 MaxFouTech

The issue has been reproduced with the version 2.0.1

MaxFouTech avatar Sep 30 '25 16:09 MaxFouTech

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 06 '25 10:12 github-actions[bot]

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 08 '26 10:01 github-actions[bot]

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.

github-actions[bot] avatar Jan 16 '26 14:01 github-actions[bot]