fix(config): prefer canonical plugin config filenames

Ensure oh-my-opencode filenames always win over legacy oh-my-openagent files so readers match canonical writer behavior.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-03-24 20:38:54 +09:00
parent cea8769a7f
commit 32035d153e
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -166,7 +166,7 @@ export function loadPluginConfig(
const userConfigPath =
userDetected.format !== "none"
? userDetected.path
: path.join(configDir, "oh-my-openagent.json");
: path.join(configDir, "oh-my-opencode.json");
// Project-level config path - prefer .jsonc over .json
const projectBasePath = path.join(directory, ".opencode");
@@ -174,7 +174,7 @@ export function loadPluginConfig(
const projectConfigPath =
projectDetected.format !== "none"
? projectDetected.path
: path.join(projectBasePath, "oh-my-openagent.json");
: path.join(projectBasePath, "oh-my-opencode.json");
// Load user config first (base)
let config: OhMyOpenCodeConfig =