Skip to content

[BUG] /desktop fails with "CLI session transcript not found" on Windows #50236

Description

@Fragol-01

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?

Bug: /desktop command fails with "CLI session transcript not found" on Windows

Version: Claude Code v2.1.113
OS: Windows 11
Node: v24.14.1 (fnm)

Steps to reproduce:

  1. Run claude in PowerShell
  2. Execute /desktop
  3. Claude Desktop opens and immediately shows error dialog

Error:

Couldn't open session
CLI session transcript not found: <uuid>

Root cause identified:
~/.claude/sessions/ directory exists but is always empty. Claude Code generates a session UUID and passes it to Claude Desktop via deep link, but never writes the transcript file to disk. Claude Desktop then fails to find the file.

Verified:

  • ~/.claude/sessions/ → empty
  • ~/.claude/projects/ → contains .jsonl files but none matching the UUID shown in error
  • Reinstalling Claude Code does not fix it
  • Updating Claude Desktop to latest does not fix it
  • Error UUID changes on every /desktop invocation

Workaround: Use Claude Code directly in terminal. /desktop integration is non-functional on Windows.

Expected behavior: Session transcript written to ~/.claude/sessions/<uuid>.jsonl before Desktop is launched.

What Should Happen?

Session transcript written to ~/.claude/sessions/.jsonl before Claude Desktop is launched. Desktop should open the session successfully.

Error Messages/Logs

Couldn't open session
CLI session transcript not found: ae708bb8-735a-4732-b891-8f93fb0abea9

Steps to Reproduce

  1. Open PowerShell (Windows 11)
  2. Run claude
  3. Execute /desktop
  4. Claude Desktop opens and shows error dialog immediately

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Unknown

Claude Code Version

v2.1.113

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions