Where does the bug appear (feature/product)?
Grok Build (formerly Cursor)
Describe the Bug
On Windows, every Agent Shell tool call fails before the process starts with:
Error: Command failed to spawn: spawn EPERM
There is no command stdout/stderr. File tools (Read / Write / Grep / Glob) work normally. The integrated terminal that I open myself also works.
This is not an approval/sandbox-policy refusal:
Shell permissions auto-approve the command
sandboxEnabled: false
userConfiguredPolicyType / mergedPolicyType: insecure_none
Failure happens immediately after approval, inside Node child_process.spawn
Stack from daemon.log:
Error: spawn EPERM
at ChildProcess.spawn (node:internal/child_process:487:11)
at spawn (node:child_process:813:9)
at Object.spawnWithPlacement [as spawnWorkload] (…/daemon.cjs:3130:80)
at spawnUnsafe (…/daemon.cjs:4384:939)
at spawnInSandbox (…/daemon.cjs:4384:780)
at spawnWithSignal (…/daemon.cjs:4392:525)
at _PowerShellState.execute (…/daemon.cjs:5836:991)
So the break is in agent-host’s _PowerShellState.execute path (piped stdio PowerShell launch), not in the permission classifier.
Steps to Reproduce
Open a local workspace on Windows in grok-build 3.33.17.
Start a new Agent chat in the IDE Agent panel.
Ask the agent to run: echo ok
Observe spawn EPERM with no command output.
Repeat the same request in Agents Window → same failure.
Confirm Auto-Run / sandbox is not the blocker (sandboxEnabled: false, policy insecure_none, command auto-approved).
Fully quit and restart Cursor → new agent-host pid, same spawn EPERM.
Expected Behavior
echo ok should spawn PowerShell, return exit code 0, and print ok.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
Product: grok-build (displayBrand: grok-build, cliCommandName: grok-build)
Version: 3.33.17
Agent host: managed-local-run (enabledBy: gate)
Harness module: b9970db392fa / commit 8d33dbd580f8 / built 20261203-025550
Shell: Windows PowerShell (C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe)
For AI issues: which model did you use?
Grok 4.7
For AI issues: add Request ID with privacy disabled
c7d2ba9d-8e75-4478-a846-0ae47f68980b
Does this stop you from using Grok
No - Grok works, but with this issue
