Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When Grok Bot desktop is open on Windows and macOS at the same time, local-exec does not stay on the machine the user is chatting from. There is no way to pin ExternalShell / local tools to one computer.
What happens:
- Consecutive local commands in the same turn hit different machines (one Windows, one Mac)
- After the target changes, later commands fail with “That action was not approved on the user’s computer”
- This happens even with Settings → Bot → Execution on Local Computer = Always allow on both machines (localToolPermission: “always” in each machine’s settings.json, no team ceiling)
- Host-side, approval is bound to a target-computer hash. If the target changes between review and execution, the host rejects with “The reviewed shell target changed before execution”
- On Windows the local-exec daemon logged: discovery publish failed (previous record stands): Error (EPERM) — so the other machine’s daemon stayed the default discovery record
- Closing the other Grok Bot session made both commands hit the intended machine and succeed
Expected:
- Pin local-exec to the computer the user is chatting from, or keep a stable default for the turn
- Do not fail later commands when two desktop sessions are open
- Always allow should not be defeated by a host flap
- The Windows daemon should be able to publish discovery without EPERM leaving a stale Mac record
Not a duplicate of:
- Grok Bot ExternalShell blocked despite Always allow (one Mac / stale daemon, same UNAPPROVED text)
- Grok Bot local-exec-daemon on macOS dies after staying healthy; Mac unreachable until leftover processes are killed (heartbeat miss, not a two-machine flap)
OS: Windows 10/11 and macOS
Product: Grok Bot desktop
Steps to Reproduce
- Open Grok Bot desktop on a Windows machine and on a macOS machine at the same time, signed in to the same account.
- Set Settings → Bot → Execution on Local Computer = Always allow on both machines.
- From one chat, run two consecutive local shell commands in the same turn.
- Observe that the commands can land on different machines, and that later commands then fail with the not-approved error.
- Close the other Grok Bot session and re-run: both commands hit the intended machine and succeed.
Expected Behavior
Local-exec should stay pinned to the computer the user is chatting from (or keep a stable default for the turn), later commands should not fail when two desktop sessions are open, and Always allow should not be defeated by a host flap.
Operating System
Windows 10/11
MacOS
Version Information
Grok Bot desktop (latest), Windows 10/11 and macOS
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor