Grok Bot 0.16.0: computer approval UI crashes on undefined `.subject` (command not shown)

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

  1. Run Grok Bot 0.16.0 with multiple agents and one connected Mac.
  2. Have an agent request an ExternalShell (local computer) command that needs approval.
  3. 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.
  4. Open devtools: an uncaught TypeError: Cannot read properties of undefined (reading 'subject') is thrown from ue in view-CWGojwOR.js.

Expected Behavior

Expected

  1. Approval UI shows the exact shell command, cwd, and requesting agent.
  2. No uncaught renderer TypeError.

Actual

  1. Blanket permission copy only - no command payload.
  2. Renderer crash on .subject while rendering the approval/view stack.
  3. 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

Update / user-facing symptom:

When this crash hits in an agent chat, Grok Bot shows a section error banner:

“Couldn’t render this. This section hit an unexpected error. Retry / Copy error”

“Copy error” yields the same TypeError: Cannot read properties of undefined (reading ‘subject’) at ue in view-CWGojwOR.js:1:4134 (same stack as OP). So this is not a separate bug — it is the same approval/view crash surfacing via the chat error boundary when the computer-command approval card fails to render.

Please keep tracking under this thread.

Hi @monomyth Thanks for the post! That isn’t intended, and it isn’t caused by anything in your setup. On 0.16.0 a per-action approval card can fail to render, which is why the command never appears. This is fixed in the latest Grok Bot desktop (0.18.0). Please use Check for Updates and install the latest build.

Just add some certainty; you were not approving a hidden command. “Allow Grok Bot and all agents to run commands on your local computer?” only asks for general local access and never lists a specific command. The command belongs on a different card, and that is the one that crashed. When that card fails, the action is denied rather than run. After you update, that card should show the command again. If it still does not, reply here and we will keep looking.