fix: regression where config would error despite valid agents
This commit is contained in:
parent
f9cef22a53
commit
3d822e5f79
1 changed files with 0 additions and 11 deletions
|
|
@ -141,17 +141,6 @@ export namespace Config {
|
||||||
|
|
||||||
if (!result.keybinds) result.keybinds = Info.shape.keybinds.parse({})
|
if (!result.keybinds) result.keybinds = Info.shape.keybinds.parse({})
|
||||||
|
|
||||||
// Only validate if user has configured agents - if none configured, built-in agents will be used
|
|
||||||
if (Object.keys(result.agent).length > 0) {
|
|
||||||
const primaryAgents = Object.values(result.agent).filter((a) => a.mode !== "subagent" && !a.hidden && !a.disable)
|
|
||||||
if (primaryAgents.length === 0) {
|
|
||||||
throw new InvalidError({
|
|
||||||
path: "config",
|
|
||||||
message: "No primary agents are available. Please configure at least one agent with mode 'primary' or 'all'.",
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
config: result,
|
config: result,
|
||||||
directories,
|
directories,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue