fix(cua-driver): report inaccessible Windows daemon pipes - #3318
Open
injaneity wants to merge 1 commit into
Open
fix(cua-driver): report inaccessible Windows daemon pipes#3318injaneity wants to merge 1 commit into
injaneity wants to merge 1 commit into
Conversation
injaneity
marked this pull request as ready for review
August 21, 2026 16:59
This was referenced Aug 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
summary
cua-driver statusreports that the daemon is runningsessionfield from the documentedstatusoutputcloses #2771
root cause
The Windows daemon pipe is intentionally private to the SID that owns the interactive daemon.
WaitNamedPipeW, which backed the firststatuscheck, proves that the pipe name exists without proving that the caller may open it. A different SSH account therefore saw “daemon is running” fromstatus, then received Windows error 5 when MCP attempted the real connection.Session 0 is not the blocker. A same-SID Session 0 client can connect to the interactive Session 1 daemon.
validation
Exact head:
bbebabcd5Live Windows OpenSSH replay against an elevated interactive Cua daemon:
-1000-1001statusdetected the pipemcp --socket \.\pipe\cua-driverfailed withAccess is denied. (os error 5)-1000initializeand returned the Cua server responseThe temporary SSH key, test binary, account allowance, and ACL changes were removed after the replay; the original OpenSSH configuration was restored.
Also checked:
git diff --checkstatusperformssend_requestbefore printing “daemon is running”Focused Rust tests were not run locally because Cargo is unavailable in this Windows workspace; pull request CI is pending.