Skip to content

Grok runs look user-stopped: --permission-mode auto is default in CLI 1.0.5 #578

Closed

Description

@currentbits

Problem

Grok threads (and grok workers) end with Run stopped even when nobody hit Stop/Esc. The transcript often has:

User cancelled the execution for tool `run_terminal_command`

then the runner maps the CLI errors: ["cancelled"] result to idle + "Run stopped" (#549).

Root cause

Solenta maps grok asking modes (default, acceptEdits) to --permission-mode auto so headless -p will not prompt (issue #3).

On grok 1.0.5, that mapping is a no-op:

  • grok --permission-mode auto -p … init event reports permissionMode: "default"
  • gated tools (run_terminal_command, etc.) are auto-cancelled with "User cancelled the execution for tool …"
  • --always-approve init-reports bypassPermissions and actually runs the tool

Live check: auto + list_dir succeeded (read tools); auto + bash is what Solenta then paints as a user stop.

Fix

For grok asking modes, pass a mode 1.0.5 actually honors for headless auto-approve (--permission-mode bypassPermissions and --always-approve). Leave plan / explicit bypassPermissions as they are.

Not

Activity

  1. added
    bug
    plan:doing
    on Aug 19, 2026
  2. currentbits commented on Aug 19, 2026

    @currentbits
    OwnerAuthor

    Fix is on coder/we-have-an-issue-that-when-grok-is-ussed-f583cf.

    Grok asking modes (default, acceptEdits) now spawn with --permission-mode bypassPermissions --always-approve instead of --permission-mode auto. plan is unchanged.

    Live 1.0.5 check: auto init-reports default and cancels run_terminal_command as a user cancel; --always-approve init-reports bypassPermissions and runs the tool.

    Tests: electron/test/grok.test.js, providers.test.js, sandbox.test.js (30 pass).

  3. added
    plan:done
    and removed
    plan:doing
    on Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions