Skip to content

[BUG] Multiple Claude Code Desktop sessions in DIFFERENT directories all execute the last prompt — sessions cross-contaminate #27658

@sixtovaldese

Description

@sixtovaldese

Preflight Checklist

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

What's Wrong?

When running 3 simultaneous sessions in the Claude Desktop app (Code tab), each pointed at a completely different local folder, all sessions converge to execute only the last prompt sent to any of the 3 sessions.

Session 1: Folder_A with Prompt A
Session 2: Folder_B with Prompt B
Session 3: Folder_C with Prompt C

All 3 folders are at completely different paths on disk. After sending prompts to all 3 sessions, all 3 started showing the exact same output — identical task progress, identical transcript file paths (all pointing to Session 2's folder), and identical task summaries.

The last prompt sent hijacked all active sessions. The other 2 abandoned their original tasks and began executing work from the 3rd session.

This is NOT the CLI — this is the Claude Desktop app's built-in Code interface on Windows.

What Should Happen?

Each session should be completely isolated. A prompt sent to Session 3 should have zero effect on Sessions 1 and 2. Each session should only work on its assigned task within its own directory.

Error Messages/Logs

No error messages. The sessions silently switch to executing the wrong task without any warning or error.

Steps to Reproduce

  1. Open Claude Desktop app on Windows
  2. Go to the "Code" tab
  3. Create Session 1 → select Folder A → send a prompt
  4. Create Session 2 → select Folder B → send a different prompt
  5. Create Session 3 → select Folder C → send a different prompt
  6. Observe: all 3 sessions show the same output from the last prompt sent

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.50 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

Related issues:

This makes parallel workflows completely unusable. In the Desktop app there is no workaround available (no --fork-session or --resume flags). The only option is to run one session at a time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssue is inactive

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions