fix(core): limit subagent nesting depth (#37124)

Co-authored-by: Dax <mail@thdxr.com>
This commit is contained in:
opencode-agent[bot]
2026-07-15 09:53:52 -05:00
committed by GitHub
co-authored by Dax
parent 656f299017
commit 285d315b4e
4 changed files with 99 additions and 1 deletions
+3
View File
@@ -81,6 +81,9 @@ export const Info = Schema.Struct({
description:
"Default agent to use when none is specified. Must be a primary agent. Falls back to 'build' if not set or if the specified agent is invalid.",
}),
subagent_depth: Schema.optional(NonNegativeInt).annotate({
description: "Maximum subagent nesting depth. Defaults to 1, which prevents subagents from launching subagents.",
}),
username: Schema.optional(Schema.String).annotate({
description: "Custom username to display in conversations instead of system username",
}),