claude-code - 💡(How to fix) Fix [Windows Desktop] Frequent crashes, orphaned dev server processes, and zombie git processes after v1.2581.0 update [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48398Fetched 2026-04-16 07:01:18
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
1
Timeline (top)
labeled ×4commented ×1cross-referenced ×1

After updating to Claude Code v1.2581.0 (Windows Desktop App), the application crashes and restarts unexpectedly during routine development work — especially when starting or interacting with dev servers via preview_start. Previous server instances are not properly terminated on crash, making subsequent server starts fail with port-already-in-use errors. Additionally, orphaned git/git-for-windows/TortoiseGit processes accumulate (many in suspended state), causing severe system slowdown over time.

Root Cause

When the app crashes, dev server processes started via preview_start are NOT terminated. On restart, attempting to start the server again fails because the port is already in use by the orphaned process from the crashed session.

Fix Action

Fix / Workaround

Workarounds

RAW_BUFFERClick to expand / collapse

Summary

After updating to Claude Code v1.2581.0 (Windows Desktop App), the application crashes and restarts unexpectedly during routine development work — especially when starting or interacting with dev servers via preview_start. Previous server instances are not properly terminated on crash, making subsequent server starts fail with port-already-in-use errors. Additionally, orphaned git/git-for-windows/TortoiseGit processes accumulate (many in suspended state), causing severe system slowdown over time.

Environment

  • Claude Code version: 1.2581.0 (Desktop App)
  • Platform: Windows 11 Pro (Build 10.0.26200), AMD64
  • Shell: bash (Git Bash / msys2)
  • Model in use: Claude Opus 4.6 (1M context)

Project context

Full-stack TypeScript monorepo (npm workspaces):

  • Frontend: Next.js app (apps/site, port 5200)
  • Backend APIs: Express-based services (apps/api-web port 5201, apps/api-anthropic port 5203)
  • Dev servers managed via .claude/launch.json and preview_start tool
  • Typical workflow: iterative frontend development with frequent code edits, preview screenshots, snapshot checks, console/network inspection

Bug description

1. Frequent crashes and restarts

During normal development (editing files, running preview tools, reading code), the Claude Code desktop app crashes and restarts without warning. This happens significantly more often than before the v1.2581.0 update — roughly every 15–30 minutes of active use, sometimes more frequently.

No specific action consistently triggers the crash, but it often occurs:

  • When starting a dev server via preview_start
  • During heavy tool usage (multiple parallel tool calls)
  • When the conversation context grows large

2. Orphaned dev server processes (port conflicts)

When the app crashes, dev server processes started via preview_start are NOT terminated. On restart, attempting to start the server again fails because the port is already in use by the orphaned process from the crashed session.

Expected behavior: On crash or restart, all child processes (dev servers) spawned by the previous session should be cleaned up, or preview_start should detect and kill stale processes on the same port.

Actual behavior: The orphaned node/next-server process holds the port. The user must manually find and kill the process via Task Manager before preview_start works again.

3. Zombie git processes causing system slowdown

After prolonged use (and multiple crash/restart cycles), Task Manager shows numerous git-related processes accumulating:

  • git.exe (multiple instances)
  • Git for Windows processes
  • TortoiseGit helper processes
  • Several of these are in Suspended state

These zombie processes are never cleaned up and cause severe system slowdown over time, eventually degrading the entire machine's performance. The only remedy is manually killing them or restarting the computer.

Steps to reproduce

  1. Open Claude Code Desktop v1.2581.0 on Windows 11
  2. Open a monorepo project with .claude/launch.json configured
  3. Start a dev server via preview_start
  4. Perform iterative development (edit files, use preview tools, read files)
  5. Wait for crash (typically within 15–30 min of active use)
  6. After restart, try preview_start again — fails with port conflict
  7. Check Task Manager — orphaned node processes and suspended git processes visible
  8. Repeat cycle — git processes accumulate, system slows down progressively

Expected behavior

  • The app should not crash during normal development workflows
  • On crash/restart, child processes (dev servers) should be cleaned up
  • Git processes should not accumulate in suspended state
  • System performance should not degrade over extended use

Actual behavior

  • Frequent unexpected crashes and restarts
  • Dev server processes survive crashes and block port reuse
  • Git processes accumulate as zombies, many suspended
  • System becomes progressively slower, requiring manual process cleanup

Workarounds

  • Manually kill orphaned node/next processes via Task Manager before restarting dev servers
  • Periodically check Task Manager for suspended git processes and kill them
  • Restart computer when system becomes too slow

Additional context

  • This regression started with v1.2581.0 — previous versions were significantly more stable on the same hardware and project
  • The project uses Git Bash (msys2) as the shell environment
  • .claude/launch.json uses npm run dev to start Next.js and Express servers

extent analysis

TL;DR

The most likely fix involves addressing the improper termination of child processes and git-related processes after the Claude Code desktop app crashes, which can be mitigated by implementing a cleanup mechanism or modifying the preview_start tool to detect and kill stale processes.

Guidance

  • Investigate the preview_start tool to determine why it does not properly terminate dev server processes on crash or restart, and consider modifying it to detect and kill stale processes on the same port.
  • Implement a mechanism to clean up git-related processes (e.g., git.exe, Git for Windows processes, TortoiseGit helper processes) after the app crashes or restarts to prevent accumulation of zombie processes.
  • Review the .claude/launch.json configuration to ensure it properly handles process termination and consider adding a hook to kill any remaining processes on crash or restart.
  • Consider adding a periodic task to clean up suspended git processes to prevent system slowdown.

Example

No specific code example can be provided without further information on the preview_start tool and the .claude/launch.json configuration. However, a potential solution might involve adding a script to kill stale processes before starting a new dev server:

# Example script to kill stale processes before starting dev server
pkill -f "node next-server"

Notes

The provided guidance is based on the assumption that the issue is related to the improper termination of child processes and git-related processes. Further investigation may be required to determine the root cause of the crashes and implement a more comprehensive solution.

Recommendation

Apply a workaround by implementing a cleanup mechanism or modifying the preview_start tool to detect and kill stale processes, as the root cause of the issue is not explicitly stated and may require further investigation.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

  • The app should not crash during normal development workflows
  • On crash/restart, child processes (dev servers) should be cleaned up
  • Git processes should not accumulate in suspended state
  • System performance should not degrade over extended use

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Windows Desktop] Frequent crashes, orphaned dev server processes, and zombie git processes after v1.2581.0 update [1 comments, 2 participants]