fix(omo): adapt to oh-my-openagent rename with backward compatibility (#1746)

* fix(omo): adapt to oh-my-openagent rename with backward compatibility

Closes https://github.com/farion1231/cc-switch/issues/1733

* fix(omo): prioritize oh-my-openagent config over legacy oh-my-opencode
This commit is contained in:
Dex Miller
2026-03-31 16:32:49 +08:00
committed by GitHub
parent c68476d0ea
commit 6a083cdd1c
8 changed files with 130 additions and 53 deletions
@@ -65,7 +65,7 @@ export function ProviderPresetSelector({
case "omo":
return t("providerForm.omoHint", {
defaultValue:
"💡 OMO 配置管理 Agent 模型分配,写入 oh-my-opencode.jsonc",
"💡 OMO 配置管理 Agent 模型分配,兼容 oh-my-openagent.jsonc / oh-my-opencode.jsonc",
});
default:
return t("providerPreset.hint", {