Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Summary
When Grok Bot agents request ExternalShell (local Mac) command approval, the permission UI often does not show the command. The user only sees “Allow Grok Bot and all agents to run commands on your local computer?” with Always allow / Allow once / Never. Concurrently the renderer throws:
TypeError: Cannot read properties of undefined (reading 'subject')
at ue in view-CWGojwOR.js:1:4134, then $6e / cwe / PBe / aJe… in index-x-YCiXos.js.
Root cause (asar inspection, read-only)
In view-CWGojwOR.js component ue:
m = K[a.surface];
const P = m.subject; // throws when m is undefined
K only defines: host_shell, box_shell, mcp, computer, automation_write, cloud_agent.
If a.surface is missing/unknown, render crashes and the command never paints.
Suggested fix: null-guard m?.subject and always send a known surface (e.g. host_shell) on ExternalShell approval payloads.
Impact
High - trust/safety. Approving computer access without seeing the command is unacceptable with multiple agents.
Workaround
Agents paste the exact command in chat before ExternalShell so the user can approve knowingly when the modal omits it.
Steps to Reproduce
- Run Grok Bot 0.16.0 with multiple agents and one connected Mac.
- Have an agent request an ExternalShell (local computer) command that needs approval.
- Observe the approval modal: only the blanket “Allow Grok Bot and all agents to run commands on your local computer?” copy appears — no command, cwd, or requesting agent.
- Open devtools: an uncaught
TypeError: Cannot read properties of undefined (reading 'subject')is thrown fromueinview-CWGojwOR.js.
Expected Behavior
Expected
- Approval UI shows the exact shell command, cwd, and requesting agent.
- No uncaught renderer TypeError.
Actual
- Blanket permission copy only - no command payload.
- Renderer crash on
.subjectwhile rendering the approval/view stack. - User cannot safely approve (approving blind).
Operating System
MacOS
Version Information
Grok Bot 0.16.0 (/Applications/Grok Bot.app) — macOS 26.5 (Build 25F71), Apple Silicon
Additional Information
Stack (full)
TypeError: Cannot read properties of undefined (reading 'subject')
at ue (file:///Applications/Grok%20Bot.app/Contents/Resources/app.asar/dist/renderer/assets/view-CWGojwOR.js:1:4134)
at $6e (file:///Applications/Grok%20Bot.app/Contents/Resources/app.asar/dist/renderer/assets/index-x-YCiXos.js:30:49167)
at cwe (file:///Applications/Grok%20Bot.app/Contents/Resources/app.asar/dist/renderer/assets/index-x-YCiXos.js:30:72482)
at PBe (file:///Applications/Grok%20Bot.app/Contents/Resources/app.asar/dist/renderer/assets/index-x-YCiXos.js:30:83112)
at aJe (file:///Applications/Grok%20Bot.app/Contents/Resources/app.asar/dist/renderer/assets/index-x-YCiXos.js:30:119571)
at n7t (file:///Applications/Grok%20Bot.app/Contents/Resources/app.asar/dist/renderer/assets/index-x-YCiXos.js:30:118576)
at _we (file:///Applications/Grok%20Bot.app/Contents/Resources/app.asar/dist/renderer/assets/index-x-YCiXos.js:30:118401)
at eJe (file:///Applications/Grok%20Bot.app/Contents/Resources/app.asar/dist/renderer/assets/index-x-YCiXos.js:30:115083)
at vJe (file:///Applications/Grok%20Bot.app/Contents/Resources/app.asar/dist/renderer/assets/index-x-YCiXos.js:30:127438)
at uae (file:///Applications/Grok%20Bot.app/Contents/Resources/app.asar/dist/renderer/assets/index-x-YCiXos.js:30:125950)
at yJe (file:///Applications/Grok%20Bot.app/Contents/Resources/app.asar/dist/renderer/assets/index-x-YCiXos.js:30:126243)
Component stack starts: ue (view-CWGojwOR.js) → h9e → wGn → gce → pe → LWn → BWn → …
Environment
- App: Grok Bot 0.16.0 (
/Applications/Grok Bot.app) - OS: macOS 26.5 (Build 25F71), Apple Silicon
- Multi-agent setup with one connected Mac
- Trigger: ExternalShell / local computer command approval (reproduced across agents)
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor