fix(runner): bump max tool rounds to 30 to support long deployments

This commit is contained in:
2026-05-19 14:51:11 -07:00
parent 8071ac9049
commit 2e5ca29c40
3 changed files with 23 additions and 4 deletions

View File

@@ -190,14 +190,14 @@ Do NOT run git commit or git push — the platform handles committing after you
}
return `${tc.name}:${Object.values(tc.args ?? {})[0]}`;
}
while (turn < 16) {
while (turn < 30) {
if (opts.isStopped()) {
await emit({ ts: now(), type: "info", text: "Stopped by user." });
await patchSession(opts, { status: "stopped" });
return;
}
turn++;
const isSilent = roundsSinceText >= 8 || toolCallsSinceText >= 12;
const isSilent = roundsSinceText >= 15 || toolCallsSinceText >= 20;
const extraSystem = isSilent
? "\n\n[STATUS NUDGE] You have run " +
`${toolCallsSinceText} tool call(s) over ${roundsSinceText} round(s) ` +