Skip to content

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

Closed as not planned

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.

Activity

  1. github-actions commented on Feb 22, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. Desktop app broadcasts single prompt to multiple sessions simultaneously #27470
    2. JSONL cross-session contamination: all event types written to wrong session file when multiple sessions are active #26964
    3. [BUG] Command history from other sessions appears when using arrow keys in a new session #23276

    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

  2. maniktracks commented on Feb 22, 2026

    @maniktracks

    been having this problem for the last two days ever since new install

  3. github-actions commented on Mar 23, 2026

    @github-actions

    Closing for now — inactive for too long. Please open a new issue if this is still relevant.

  4. github-actions commented on Mar 31, 2026

    @github-actions

    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.

  5. locked as resolved and limited conversation to collaborators on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssue is inactive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions