Windows 关机重启后打开 Cindy,之前的会话提示 "Claude Code process exited with code 1073807364"
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 401
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: 阿财哥
**客户端版本**: 0.1.52
---
## 现象
Windows 关机再开机后,打开 Cindy 时,之前未结束的 Claude Code 会话显示报错:`Error: Claude Code process exited with code 1073807364`(即 `0x40010004`,Windows 进程被系统强制终止时的退出码)。报错只出现一次,之后一切恢复正常。
## 复现步骤
1. Cindy 保持运行,且存在活跃(未结束)的 Claude Code 会话
2. 直接关机(Windows 关机时强制终止 Cindy 及其 Claude Code 子进程)
3. 重新开机后启动 Cindy
4. 打开之前的会话,即可看到该报错
## 期望行为
Windows 关机导致子进程被终止属于正常系统行为,重启后打开 Cindy 不应将其作为异常错误提示(建议识别该退出码后静默处理,或标记为「上次因关机中断」)。
## 实际行为
每次关机重启后打开 Cindy,之前的会话都会显示该报错。报错后无持久影响,会话可正常继续使用。
## 复现频率
每次关机重启都出现(100% 必现)。
## 已尝试
无需特殊处理即恢复;未尝试其他解决方法。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.19045)
**界面语言**: zh-CN
Contributor guide
Research direction
Start by locating the Claude Code session process-exit handling in the TypeScript/Electron codebase and trace how persisted sessions are restored after startup. Check how exit code 1073807364 is classified on Windows, then reproduce the reported shutdown-and-restart flow. Done means the shutdown interruption is no longer shown as an ordinary error and the session remains usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100