Skip to content

Config changes in the GUI have no effect at all - cc-switch

Quick fix

OMO v4.19.3 moved config to ~/.omo/omo.jsonc, so cc-switch writes to a dead path. Edit the new config file by hand, or upgrade cc-switch.

Error output
用户在 GUI 中的配置修改完全无效
English translation

Config changes in the GUI have no effect at all

cc-switch lags behind several OpenCode and OMO plugin updates, breaking a number of features. The core problem: OMO v4.19.3 deprecated the old config path and moved unified config into the [opencode] section of ~/.omo/omo.jsonc, while cc-switch still writes to the old ~/.config/opencode/oh-my-openagent.jsonc — so the changes do nothing.

cc-switch has other adaptation problems too: JSON config not deep-merged (the "other fields" box overwrites sub-agent config), the newer opencode -s session resume command not supported, and missing newer role presets such as Consul.

  1. Migrate your OpenCode agent and category config into the new unified OMO config file by hand, wrapped in the [opencode] section.

    // ~/.omo/omo.jsonc
    {
    "[opencode]": {
    "agents": {
    // 你的 agent 配置
    },
    "categories": {
    // 你的 category 配置
    }
    }
    }
  2. Until cc-switch fixes its JSON merge logic, avoid putting JSON in the "other fields" box, so it does not overwrite sub-agent model config.

  3. When resuming a session, use the newer command opencode -s <session-id> by hand rather than the outdated one the UI shows.

Toolcc-switch
Version3.12.2 - 3.19.0
PlatformsWindowsmacOSLinux
Why does clearing the "other fields" box restore my sub-agent config?
Because the current cc-switch JSON merge logic is defective: JSON you type into "other fields" overwrites the sub-agent config at the same path rather than deep-merging. Clearing it restores the display.
The opencode session resume command shown in the cc-switch UI errors. What now?
That subcommand is deprecated in newer OpenCode. Copy the session ID from the UI and run opencode -s <session-id> in a terminal to resume.

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.