You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Grok runs look user-stopped: --permission-mode auto is default in CLI 1.0.5 #578
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.
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.
Activity
currentbits commentedon Aug 19, 2026
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-approveinstead of--permission-mode auto.planis unchanged.Live 1.0.5 check:
autoinit-reportsdefaultand cancelsrun_terminal_commandas a user cancel;--always-approveinit-reportsbypassPermissionsand runs the tool.Tests:
electron/test/grok.test.js,providers.test.js,sandbox.test.js(30 pass).