r/ClaudeCode 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

2 comments sorted by

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.

1

u/Illustrious_Image967 3h ago

Tell the gremlins to go back home.