mirror of
https://github.com/aaddrick/claude-desktop-debian.git
synced 2026-05-17 08:36:35 +03:00
After a crash or unclean exit, the cowork-vm-service daemon can outlive the main Electron UI process. The orphaned daemon holds LevelDB locks in ~/.config/Claude/Local Storage/ which cause new launches to detect a main instance and silently exit with Not main instance, returning early from app ready. Add cleanup_orphaned_cowork_daemon() that detects daemon processes without a living parent UI process and terminates them before the existing stale lock/socket cleanup runs. Also add a --doctor diagnostic check that warns when an orphaned cowork daemon is detected. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>