fix(agents): address cubic review findings on agent loader

- Case-insensitive .md extension stripping for agent name extraction
- Resolve project agent_definitions paths relative to config dir (.opencode/)
- Use getOpenCodeConfigDir() to respect OPENCODE_CONFIG_DIR/XDG_CONFIG_HOME
- First-write-wins semantics for both inline and definition-file agents
  so project-level agents always take precedence over global-level
This commit is contained in:
Brandon Webb
2026-04-14 20:27:50 -04:00
committed by YeonGyu-Kim
parent 3d0fb22cda
commit 42445f5130
5 changed files with 29 additions and 23 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ export function loadPluginConfig(
if (projectConfig?.agent_definitions) {
projectConfig.agent_definitions = resolveAgentDefinitionPaths(
projectConfig.agent_definitions,
directory,
projectBasePath,
directory
)
}