From 2e5ca29c40d19101a5a507d65363e4571493fd8f Mon Sep 17 00:00:00 2001 From: mawkone Date: Tue, 19 May 2026 14:51:11 -0700 Subject: [PATCH] fix(runner): bump max tool rounds to 30 to support long deployments --- .../dist/agent-session-runner.js | 4 ++-- vibn-agent-runner/fix_runner_limits.js | 19 +++++++++++++++++++ vibn-agent-runner/src/agent-session-runner.ts | 4 ++-- 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 vibn-agent-runner/fix_runner_limits.js diff --git a/vibn-agent-runner/dist/agent-session-runner.js b/vibn-agent-runner/dist/agent-session-runner.js index 4d6623fb..201682d1 100644 --- a/vibn-agent-runner/dist/agent-session-runner.js +++ b/vibn-agent-runner/dist/agent-session-runner.js @@ -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) ` + diff --git a/vibn-agent-runner/fix_runner_limits.js b/vibn-agent-runner/fix_runner_limits.js new file mode 100644 index 00000000..72e8145b --- /dev/null +++ b/vibn-agent-runner/fix_runner_limits.js @@ -0,0 +1,19 @@ +const fs = require('fs'); + +const file = 'src/agent-session-runner.ts'; +let code = fs.readFileSync(file, 'utf8'); + +// 1. Bump the master loop breaker from 16 to 30 +code = code.replace( + 'while (turn < 16) {', + 'while (turn < 30) {' +); + +// 2. Update the [STATUS NUDGE] to trigger less frequently +code = code.replace( + 'const isSilent = roundsSinceText >= 8 || toolCallsSinceText >= 12;', + 'const isSilent = roundsSinceText >= 15 || toolCallsSinceText >= 20;' +); + +fs.writeFileSync(file, code); +console.log("Bumped runner limits to 30 rounds"); diff --git a/vibn-agent-runner/src/agent-session-runner.ts b/vibn-agent-runner/src/agent-session-runner.ts index 2296721b..d62f5dd8 100644 --- a/vibn-agent-runner/src/agent-session-runner.ts +++ b/vibn-agent-runner/src/agent-session-runner.ts @@ -268,7 +268,7 @@ 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" }); @@ -277,7 +277,7 @@ Do NOT run git commit or git push — the platform handles committing after you 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) ` +