From 40eb8b93e132daac1dff63e260cb61a880a2ba4d Mon Sep 17 00:00:00 2001 From: Nathan Thomas Date: Fri, 5 Dec 2025 10:26:44 -0800 Subject: feat: add max steps for supervisor and sub-agents (#4062) Co-authored-by: opencode-agent[bot] Co-authored-by: rekram1-node --- packages/sdk/js/src/gen/types.gen.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/sdk/js/src/gen') diff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.ts index 60a68840c..6a5375f31 100644 --- a/packages/sdk/js/src/gen/types.gen.ts +++ b/packages/sdk/js/src/gen/types.gen.ts @@ -966,6 +966,10 @@ export type AgentConfig = { * Hex color code for the agent (e.g., #FF5733) */ color?: string + /** + * Maximum number of agentic iterations before forcing text-only response + */ + maxSteps?: number permission?: { edit?: "ask" | "allow" | "deny" bash?: @@ -986,6 +990,7 @@ export type AgentConfig = { } | boolean | ("subagent" | "primary" | "all") + | number | { edit?: "ask" | "allow" | "deny" bash?: @@ -1558,6 +1563,7 @@ export type Agent = { options: { [key: string]: unknown } + maxSteps?: number } export type McpStatusConnected = { -- cgit v1.2.3