Repository navigation
fix(grokcli): stop adding permission_mode and write headersHelper as headers_helper - #3933
Merged
Merged
Conversation
…r config.toml - permissions (global): `[ui] permission_mode` is now only kept in sync when the config already sets it to `ask` or `always-approve`. A missing key is no longer added, since Grok 1.0.80 starts TUI sessions in `auto` when it is unset and writing `ask` pinned users out of that default. - mcp: canonical `headersHelper` is written as `headers_helper`, the spelling Grok 1.0.88+ reads in `config.toml`, and read back on import (preferring `headers_helper` when both are present, as Grok does). Refs #2498 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
… allow
- `[ui] permission_mode` becomes `always-approve` only when the config has
`"*": { "*": "allow" }` and no deny/ask rule. Narrow allows such as
`bash: { "git *": "allow" }` no longer upgrade an existing `ask`, which
let every tool run without a prompt.
- Generate prefers an explicit `headers_helper` over `headersHelper` in the
same MCP entry, so the result no longer depends on key order.
- Docs: note that an unset mode imports as the narrower `ask`, and that
`"*": { "*": "ask" }` prompts for every tool under Grok's default auto mode.
Refs #2498
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…ok-mode-headers-helper # Conflicts: # src/generated/docs-content.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two follow-ups from the 2026-11-19 upstream re-check in #2498, verified against the user guide embedded in the
@xai-official/grok-linux-x641.0.90 binary (26-config-reference.md,22-permissions-and-safety.md,07-mcp-servers.md).permissions (global): stop pinning users out of Grok's new default mode
Since Grok 1.0.80,
ui.permission_modedefaults toautoin the TUI (askforgrok -p/grok agent) when no flag or config sets it. rulesync wrotepermission_mode = "ask"on everygenerate --globalthat had adenyoraskrule, which silently moved TUI users from auto-review to ask.~/.grok/config.tomlalready sets it toaskoralways-approve(the two values rulesync derives). A missing key is never added, so Grok's own default applies.autoand the newdefaultvalue are left alone, asautoalready was.always-approveis now derived only from the all-tools catch-all allow"*": { "*": "allow" }with nodeny/askrule. Before, narrow allows such asbash: { "git *": "allow" }turned an existingaskintoalways-approve, so every tool ran without a prompt. (This bug was already there before this PR; it surfaced in review.)ask, and"*": { "*": "ask" }is the canonical way to be prompted for every tool under Grok's default auto mode.denyrules and the fine-grained[permission]arrays are written as before, and Grok appliesdeny(andask) rules in auto-review mode too.mcp: write
headersHelperasheaders_helperGrok 1.0.88 added a header-minting command for HTTP/SSE MCP servers. In
config.tomlthe key isheaders_helper. The camelCaseheadersHelperis documented for.mcp.jsononly, and rulesync passed it through unchanged.headersHelpertoheaders_helper.headers_helperback asheadersHelper. When an entry has both,headers_helperwins on generate and on import, whatever the key order, which matches Grok (it ignoresheadersHelperin that case).Still open in #2498
[toolset.web_search]/[toolset.web_fetch]domain lists: the keys are now documented (1.0.90 config reference), but writing them needs nested-key ownership of[toolset]in the shared-config gateway. That is a design decision..grok/personas/*.toml: a new surface that needs a design decision..grok/workflows/*.js: informational. It belongs with the cross-tool workflows design in Follow up Claude Code upstream updates: dynamic workflows (.claude/workflows/) unsupported, scheduled-task skills written to an unread project path #2664.Refs #2498
Test plan
grokcli-permissions.test.ts,grokcli-mcp.test.ts), with the global e2e permissions test updatedpnpm cicheck🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4