[Bug] Missing wake notification handler causes stale socket connections after system sleep
Status Open
Reported on v2.1.245
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 1 comment · opened Aug 25, 2026
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
[]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗