fix: local subdirectory subagents not being picked up (#2376)

This commit is contained in:
OpeOginni
2025-09-02 16:46:00 +02:00
committed by GitHub
parent 26fbf9e647
commit 3ee4280dfa

View File

@@ -45,7 +45,7 @@ export namespace Config {
result.agent = result.agent || {} result.agent = result.agent || {}
const markdownAgents = [ const markdownAgents = [
...(await Filesystem.globUp("agent/**/*.md", Global.Path.config, Global.Path.config)), ...(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) { for (const item of markdownAgents) {
const content = await Bun.file(item).text() const content = await Bun.file(item).text()