You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
provider-claude-code bridge crashes on import: EINTR from process.cwd() #6309
bb 0.47.1 (dev.bb.desktop), Electron 44.9.3, Node 24.22.0, libuv 1.52.1.
turn.submit and thread.start fail immediately:
Provider "claude-code" exited unexpectedly (code 1)
plugin "provider-claude-code" failed to load its provider bridge: EINTR: process.cwd failed with error interrupted system call, uv_cwd
Reproduced 4 times in a row on 2026-10-26 at 09:28:39, 09:29:03, 09:32:12 (turn.submit) and 09:37:03 (thread.start). Same stderr in ~/.bb/logs/server.2.log and host-daemon.2.log.
Why this is not a Claude auth or install failure
The throw happens while evaluating the provider host bundle, before stdin is read and before any provider I/O. The child has already chdir'd into the workspace (cwd was passed to spawn). A removed working directory would be ENOENT plus the "current working directory was likely removed" suffix. This message is EINTR only.
Code path
Host daemon turn.submit → ensureThreadRuntime → spawn bb-provider-bridge-worker.mjs with the provider-claude-codehost.js.
The worker import()s host.js. On failure it writes plugin "…" failed to load its provider bridge: … and process.exit(1).
The only process.cwd() during that import is at module eval in the unpacked bundle builtin-plugins/provider-claude-code/dist/host.js, function vHe: process.cwd() is outside try; only realpathSync is inside try. The result is stored as originalCwd / projectRoot / cwd.
Node node::Cwd (src/node_process_methods.cc) calls uv_cwd and throws UVException with syscall uv_cwd.
libuv 1.52.1 uv_cwd retries getcwd only on ERANGE. EINTR is returned immediately. The SDK and the bridge worker do not retry.
Expected
Retry EINTR around getcwd / process.cwd() during provider-bridge startup so a signal in that window does not kill the provider. A single retry in vHe or in the worker would be enough.
Classification: Bug · Priority High · Effort Medium; applied providers, provider-claude-code, and partial-repro. No existing classifications were replaced.
Verdict:PARTIALLY REPRODUCED · high confidence in the import-failure mechanism. Fault injection reproduces it in two clean checkouts of trusted main; the native signal and original desktop runtime remain unverified.
Root cause: the SDK reads process.cwd() during module evaluation outside its realpath catch; an interrupted read rejects the provider import and the worker exits. Retrying the same import returns its cached evaluation error.
Evidence: real built provider host and unchanged worker; healthy control exits 0, injected EINTR exits 1 in both checkouts. All six existing worker tests pass. Reproducer and output are inline in the report.
No PR: repairing the SDK-owned call requires a dependency/packaging change or broader runtime-interception design, outside this rule's safe simple-fix scope.
Activity
bb-slop-cop commentedon Oct 26, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-claude-code, andpartial-repro. No existing classifications were replaced.process.cwd()during module evaluation outside its realpath catch; an interrupted read rejects the provider import and the worker exits. Retrying the same import returns its cached evaluation error.