[BUG] Co-work Windows: sandbox environment leaks into child processes, breaking Unix domain socket IPC (JVM NIO, Gradle, MCP servers affected)
Resolved 💬 7 comments Opened Apr 7, 2026 by androidacy-user Closed May 26, 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?
When any Claude Desktop for windows builds have cowork setup and working, any attempt by CC to create a process that needs a unix domain socket fails, because its running in the restrictive AppContainer environment.
Sample stack:
Caused by: java.io.IOException: Unable to establish loopback connection
at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:103)
at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:67)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
at java.base/sun.nio.ch.PipeImpl.<init>(PipeImpl.java:198)
at java.base/sun.nio.ch.WEPollSelectorImpl.<init>(WEPollSelectorImpl.java:78)
at java.base/sun.nio.ch.WEPollSelectorProvider.openSelector(WEPollSelectorProvider.java:33)
at java.base/java.nio.channels.Selector.open(Selector.java:295)
at org.gradle.internal.remote.internal.inet.SocketConnection$SocketInputStream.<init>(SocketConnection.java:164)
at org.gradle.internal.remote.internal.inet.SocketConnection.<init>(SocketConnection.java:62)
... 34 more
Caused by: java.net.SocketException: Invalid argument: connect
at java.base/sun.nio.ch.UnixDomainSockets.connect0(Native Method)
at java.base/sun.nio.ch.UnixDomainSockets.connect(UnixDomainSockets.java:148)
at java.base/sun.nio.ch.UnixDomainSockets.connect(UnixDomainSockets.java:144)
at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:851)
What Should Happen?
CC should not be running bash commands in the AppContainer environment.
Error Messages/Logs
Steps to Reproduce
- Try to run a gradle process
- See error above.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
unknown
Claude Code Version
Claude 1.2.234 (2d1855) 2026-04-01T07:58:22.000Z
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗