Skip to content

Switching to Grok Official clears config.toml: Grok Build

Quick fix

Upgrade to 4.0. The maintainer said the new version preserves other settings in config.toml.

Error output
切换到 Grok Official,原有 `config.toml` 内容被清空。
English translation

After switching to Grok Official, the existing `config.toml` contents were cleared.

In CC Switch 3.20.4, the Grok Official form hid the configuration area, but the switching logic still wrote the empty configuration stored in the entry (`{"config":""}`) to `~/.grok/config.toml`, overwriting its existing contents. The maintainer said version 4.0 rewrote configuration writes: switching to the Grok Build provider changes only `models.default` and the model table written by CC Switch; switching to Grok Official removes the previously written third-party model table and no longer overwrites the entire file with an empty configuration.

  1. Upgrade to 4.0. The maintainer said the new version preserves other settings in config.toml; the reply did not say whether this fix was verified in later versions.

ToolGrok Build
Version3.20.4(受影响版本;维护者称 4.0 重写了配置写入方式)
PlatformsmacOS

(No FAQ yet)

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.