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:
committed by
YeonGyu-Kim
parent
3d0fb22cda
commit
42445f5130
@@ -278,7 +278,7 @@ export function loadPluginConfig(
|
||||
if (projectConfig?.agent_definitions) {
|
||||
projectConfig.agent_definitions = resolveAgentDefinitionPaths(
|
||||
projectConfig.agent_definitions,
|
||||
directory,
|
||||
projectBasePath,
|
||||
directory
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user