Skip to content

hooks configuration lost: cc-switch switches providers

Quick fix

Write hooks required by all providers into “General configuration”, and select it when editing configurations.

Error output
从cc官方供应商切换到智谱后,发现setting.json中的hooks配置丢失了
English translation

After switching from the official cc provider to 智谱, the hooks configuration in setting.json was found to be missing.

This is expected behavior: cc-switch rewrites setting.json when switching providers to prevent parameters from different providers from contaminating each other, rather than replacing only some entries. Existing hooks configuration is therefore not retained automatically.

  1. Write hooks required by every provider configuration into “General configuration”.

  2. When editing a provider configuration, select that general configuration to apply the hooks.

Toolcc-switch
VersionUnknown
PlatformsUnknown

(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.