hooks configuration lost: cc-switch switches providers
Quick fix
Write hooks required by all providers into “General configuration”, and select it when editing configurations.
Symptom
Section titled “Symptom”从cc官方供应商切换到智谱后,发现setting.json中的hooks配置丢失了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.
Write hooks required by every provider configuration into “General configuration”.
When editing a provider configuration, select that general configuration to apply the hooks.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
(No FAQ yet)
Related problems
Section titled “Related problems”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.