Merge pull request #2306 from Romanok2805/fix/builtin-agent-mode-override
fix(agents): prevent user/project .md agents from overriding builtin agent modes
This commit is contained in:
@@ -44,7 +44,7 @@ function loadAgentsFromDir(agentsDir: string, scope: AgentScope): LoadedAgent[]
|
||||
|
||||
const config: AgentConfig = {
|
||||
description: formattedDescription,
|
||||
mode: "subagent",
|
||||
mode: data.mode || "subagent",
|
||||
prompt: body.trim(),
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ export interface AgentFrontmatter {
|
||||
description?: string
|
||||
model?: string
|
||||
tools?: string
|
||||
mode?: "subagent" | "primary" | "all"
|
||||
}
|
||||
|
||||
export interface LoadedAgent {
|
||||
|
||||
Reference in New Issue
Block a user