summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-20 21:04:37 -0600
committerAiden Cline <[email protected]>2025-12-20 21:04:37 -0600
commit3d822e5f795d0c5bbb20bef15c232154cf101779 (patch)
tree4dc5e8e76491ffaff25197d957e193991fc1469f
parentf9cef22a531e70013f7c8a649a9ae6ae3e515bed (diff)
downloadopencode-3d822e5f795d0c5bbb20bef15c232154cf101779.tar.gz
opencode-3d822e5f795d0c5bbb20bef15c232154cf101779.zip
fix: regression where config would error despite valid agents
-rw-r--r--packages/opencode/src/config/config.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts
index 1158d67f4..031bdd31b 100644
--- a/packages/opencode/src/config/config.ts
+++ b/packages/opencode/src/config/config.ts
@@ -141,17 +141,6 @@ export namespace Config {
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 {
config: result,
directories,