The open source coding agent.
TypeScript
fix: local subdirectory subagents not being picked up (#2376)
OpeOginni3ee4280dfa56
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.tsindex 135c0e80c38..fbb99512f16 100644--- a/packages/opencode/src/config/config.ts+++ b/packages/opencode/src/config/config.ts@@ -45,7 +45,7 @@ export namespace Config {result.agent = result.agent || {}const markdownAgents = [...(await Filesystem.globUp("agent/**/*.md", Global.Path.config, Global.Path.config)),- ...(await Filesystem.globUp(".opencode/agent/*.md", Instance.directory, Instance.worktree)),+ ...(await Filesystem.globUp(".opencode/agent/**/*.md", Instance.directory, Instance.worktree)),]for (const item of markdownAgents) {const content = await Bun.file(item).text()