Skip to content

[BUG] Claude Code Desktop fails to Relaunch on Windows due to orphaned process file lock #42776

Description

@RonGamzu

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 closing or performing a "Relaunch" of the Claude desktop application on Windows, the main UI closes, but a background process remains running. This orphaned process continues to hold a file lock on the app's executable in the WindowsApps folder.

When attempting to open the app again, Windows throws the error: "Another program is currently using this file". I am forced to manually kill the orphaned handle via Resource Monitor or restart the entire PC to open the app again.

What Should Happen?

The Relaunch or close sequence should gracefully terminate all background processes and release all file handles before initializing the new instance.

Error Messages/Logs

Windows Error Dialog:
"Another program is currently using this file"
Path referenced: C:\Program Files\WindowsApps\Claude_1.1.9669.0_x...

Steps to Reproduce

  1. Open the Claude desktop app on Windows.
  2. Trigger a Relaunch.
  3. The main app window closes.
  4. Wait a few minutes and try to launch the app again from the Start menu or shortcut.
  5. Observe the Windows system error popup about the file being in use.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude Desktop 1.1.9669.0

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssue doesn't seem to be related to Claude Code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions