anthropics / anthropics/claude-code
[Bug] Missing wake notification handler causes stale socket connections after system sleep
- Ngôn ngữ chính
- Python
- Star
- 145k
- Fork
- 23.1k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
**Bug Description**
NSWorkspaceDidActivateApplicationNotification ← app activation only
NSWorkspaceDidWakeNotification ← ABSENT
There is no wake handler. Claude Code never learns the machine slept, so it never resets its connection pool on resume — it just keeps handing out sockets that died during suspend. That's the actual defect, it's client-side, and no user-facing setting fixes it. The honest native fix is upstream: report it with /bug. Your sysctl is a kernel-side workaround for a missing app-side wake handler — effective, but compensating for someone else's gap.
**Environment Info**
- Platform: darwin
- Terminal: zed
- Version: 2.1.245
- Feedback ID: b991a1b0-0fba-485d-82cf-2ef8a0e03027
**Errors**
```json
[]
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
The report identifies a missing NSWorkspaceDidWakeNotification handler and says the defect is client-side, but it names no repository file, test, or implementation entry point. First confirm whether wake handling exists in the client; done would require a reproducible post-sleep connection reset and repository direction, since the report currently recommends /bug rather than an in-repo fix.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- macos
- Lĩnh vực
- cli, operating-systems
- Loại issue
- Lỗi
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100