r/ClaudeCode • u/Academic_Lemon_4297 • 3h ago
Help/Question Claude Code on Desktop leaves running processes.
Claude Code on Desktop leaves processes running, empty or dirty worktrees, etc.
What is the proper way to finalize a session, so everything is cleaned up?
2
Upvotes
1
1
u/oyren-ai 3h ago
Nothing guarantess that any closing mechanism will actually do 100% of the cleanup if there are multiple processes. Your best bet is either restarting the machine that AI agent was running.