feat: add max steps for supervisor and sub-agents (#4062)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
This commit is contained in:
Nathan Thomas
2025-12-05 10:26:44 -08:00
committed by GitHub
parent 6e6bd1e171
commit 40eb8b93e1
6 changed files with 90 additions and 2 deletions

View File

@@ -375,6 +375,12 @@ export namespace Config {
.regex(/^#[0-9a-fA-F]{6}$/, "Invalid hex color format")
.optional()
.describe("Hex color code for the agent (e.g., #FF5733)"),
maxSteps: z
.number()
.int()
.positive()
.optional()
.describe("Maximum number of agentic iterations before forcing text-only response"),
permission: z
.object({
edit: Permission.optional(),