Raise default max turns to 300
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -249,7 +249,7 @@ Runs local `claude` CLI directly.
|
|||||||
"cwd": "/absolute/or/relative/path",
|
"cwd": "/absolute/or/relative/path",
|
||||||
"promptTemplate": "You are agent {{agent.id}} ...",
|
"promptTemplate": "You are agent {{agent.id}} ...",
|
||||||
"model": "optional-model-id",
|
"model": "optional-model-id",
|
||||||
"maxTurnsPerRun": 80,
|
"maxTurnsPerRun": 300,
|
||||||
"dangerouslySkipPermissions": true,
|
"dangerouslySkipPermissions": true,
|
||||||
"env": {"KEY": "VALUE"},
|
"env": {"KEY": "VALUE"},
|
||||||
"extraArgs": [],
|
"extraArgs": [],
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ The `claude_local` adapter runs Anthropic's Claude Code CLI locally. It supports
|
|||||||
| `env` | object | No | Environment variables (supports secret refs) |
|
| `env` | object | No | Environment variables (supports secret refs) |
|
||||||
| `timeoutSec` | number | No | Process timeout (0 = no timeout) |
|
| `timeoutSec` | number | No | Process timeout (0 = no timeout) |
|
||||||
| `graceSec` | number | No | Grace period before force-kill |
|
| `graceSec` | number | No | Grace period before force-kill |
|
||||||
| `maxTurnsPerRun` | number | No | Max agentic turns per heartbeat |
|
| `maxTurnsPerRun` | number | No | Max agentic turns per heartbeat (defaults to `300`) |
|
||||||
| `dangerouslySkipPermissions` | boolean | No | Skip permission prompts (dev only) |
|
| `dangerouslySkipPermissions` | boolean | No | Skip permission prompts (dev only) |
|
||||||
|
|
||||||
## Prompt Templates
|
## Prompt Templates
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ const ADAPTER_DEFAULT_RULES_BY_TYPE: Record<string, Array<{ path: string[]; valu
|
|||||||
claude_local: [
|
claude_local: [
|
||||||
{ path: ["timeoutSec"], value: 0 },
|
{ path: ["timeoutSec"], value: 0 },
|
||||||
{ path: ["graceSec"], value: 15 },
|
{ path: ["graceSec"], value: 15 },
|
||||||
{ path: ["maxTurnsPerRun"], value: 80 },
|
{ path: ["maxTurnsPerRun"], value: 300 },
|
||||||
],
|
],
|
||||||
openclaw_gateway: [
|
openclaw_gateway: [
|
||||||
{ path: ["timeoutSec"], value: 120 },
|
{ path: ["timeoutSec"], value: 120 },
|
||||||
|
|||||||
@@ -122,9 +122,9 @@ export function ClaudeLocalAdvancedFields({
|
|||||||
value={eff(
|
value={eff(
|
||||||
"adapterConfig",
|
"adapterConfig",
|
||||||
"maxTurnsPerRun",
|
"maxTurnsPerRun",
|
||||||
Number(config.maxTurnsPerRun ?? 80),
|
Number(config.maxTurnsPerRun ?? 300),
|
||||||
)}
|
)}
|
||||||
onCommit={(v) => mark("adapterConfig", "maxTurnsPerRun", v || 80)}
|
onCommit={(v) => mark("adapterConfig", "maxTurnsPerRun", v || 300)}
|
||||||
immediate
|
immediate
|
||||||
className={inputClass}
|
className={inputClass}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export const defaultCreateValues: CreateConfigValues = {
|
|||||||
workspaceBranchTemplate: "",
|
workspaceBranchTemplate: "",
|
||||||
worktreeParentDir: "",
|
worktreeParentDir: "",
|
||||||
runtimeServicesJson: "",
|
runtimeServicesJson: "",
|
||||||
maxTurnsPerRun: 80,
|
maxTurnsPerRun: 300,
|
||||||
heartbeatEnabled: false,
|
heartbeatEnabled: false,
|
||||||
intervalSec: 300,
|
intervalSec: 300,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user