Skip to content

Commit 3d822e5

Browse files
committed
fix: regression where config would error despite valid agents
1 parent f9cef22 commit 3d822e5

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

packages/opencode/src/config/config.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,6 @@ export namespace Config {
141141

142142
if (!result.keybinds) result.keybinds = Info.shape.keybinds.parse({})
143143

144-
// Only validate if user has configured agents - if none configured, built-in agents will be used
145-
if (Object.keys(result.agent).length > 0) {
146-
const primaryAgents = Object.values(result.agent).filter((a) => a.mode !== "subagent" && !a.hidden && !a.disable)
147-
if (primaryAgents.length === 0) {
148-
throw new InvalidError({
149-
path: "config",
150-
message: "No primary agents are available. Please configure at least one agent with mode 'primary' or 'all'.",
151-
})
152-
}
153-
}
154-
155144
return {
156145
config: result,
157146
directories,

0 commit comments

Comments
 (0)