[BUG] Desktop app loses/orphans sessions after child process is force-terminated (DBG_TERMINATE_PROCESS) — "couldn't fork" on resume

Status Open
Maintainer reply None cached
Activity 0 comments · opened Aug 7, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Desktop app loses/orphans the previous session for a project after its CLI child process is force-terminated by Windows. On reopening the app, the last session isn't shown/resumable, and manually resuming it throws "couldn't fork".

What Should Happen?

The most recent session for a project should appear and be resumable after reopening the app, even if the CLI process exited abnormally rather than cleanly.

Error Messages/Logs

2026-08-05 11:09:57 [error] Session local_1666ed26-afa5-46aa-9c44-5336b8ab9f14 query error: Claude Code process exited with code 1073807364
2026-08-06 19:25:45 [error] Session local_f6fe6c56-17e3-40f3-a24b-35b9e6552a70 query error: Claude Code process exited with code 1073807364
2026-08-06 19:25:45 [warn] [pty-host] worker exited (1073807364) with 2 live PTY(s); refork on demand
2026-08-05 14:12:30 [warn] [CCD CycleHealth] local_fe6f7902-c979-43bf-bf34-980ae59a2d59 cli_execution_error (error_during_execution): No conversation found with session ID: dd83c38f-6ade-4117-b5b3-c30a5dc86810

Steps to Reproduce

Work in a project session in Claude Desktop on Windows.
Close the app, or let the system sleep, while the CLI child process is still running (it gets killed with exit code 1073807364 / 0x40010004 = DBG_TERMINATE_PROCESS).
Reopen Claude Desktop, open the same project.
Previous session is missing or fails to resume ("couldn't fork").

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

working until 2026-08-05 (Wednesday)

Claude Code Version

1.25927.0.0

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗