Skip to content

Integrate #42: collision-safe Windows permission broker - #83

Merged
milind-soni merged 2 commits into
mainfrom
codex/pr-42-integration
Aug 14, 2026
Merged

Integrate #42: collision-safe Windows permission broker#83
milind-soni merged 2 commits into
mainfrom
codex/pr-42-integration

Conversation

@milind-soni

Copy link
Copy Markdown
Owner

Ports the remaining #42 permission-broker work onto current main after #41/#81.

  • preserves the centralized cross-platform broker path helper;
  • includes the harness PID in Windows named pipes so concurrent app instances cannot collide;
  • surfaces broker listen failures instead of silently turning every approval into a timeout denial;
  • enables the full Claude fake-CLI/approval suite on Windows;
  • adds an explicit Windows pipe-name regression test.

Local verification: typecheck, Electron syntax validation, production build, and 179 passing tests (seven Windows-only cases skipped locally).

Closes #42.

E4B-labs and others added 2 commits August 13, 2026 02:50
…allowing listen errors

Every permission prompt on Windows silently ends as a deny.

The Claude driver brokers approvals over a unix domain socket in
DATA_DIR and hands that path to the injected MCP permission proxy.
Windows has no unix sockets, so `server.listen()` fails immediately —
and the listener was `server.on("error", () => {})`, so nothing was
logged. The proxy then cannot connect, the ask never reaches the UI,
and the request times out into a deny with no diagnostic anywhere.

net.createServer binds a named pipe under the same API, so
permissionSocketPath returns `\.\pipe\omb-perm-<pid>-<tag>` on win32
and the existing socket path elsewhere. The pipe namespace is global and
flat — DATA_DIR does not isolate it the way it does for socket files —
so the pid is in the name to keep concurrent harnesses off each other.

The error listener now logs instead of discarding: a broker that cannot
come up is worth one line of stderr rather than an unexplained deny.

The test that raises an ask over the socket now asks the driver for the
path instead of rebuilding it, so it follows the platform.

Stacked on the CLI-resolver PR: with both applied the driver test suite
runs unskipped on Windows (89 passed / 3 skipped, from 52/33 on main).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HgJeiantdRcZSBrc5sqqCp
Port the permission broker fix through the centralized named-pipe helper and add collision coverage.
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@milind-soni, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 44 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f1883ef3-800a-4eb1-907f-eab8d17d0f0f

📥 Commits

Reviewing files that changed from the base of the PR and between 6ee94c5 and 8f35a7a.

📒 Files selected for processing (3)
  • server/drivers/claude.test.ts
  • server/drivers/claude.ts
  • server/procs.ts

Comment @coderabbitai help to get the list of available commands.

@milind-soni
milind-soni merged commit 8d223ff into main Aug 14, 2026
5 checks passed
@milind-soni
milind-soni deleted the codex/pr-42-integration branch August 14, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants