Vendored
+2
-1
@@ -38,6 +38,7 @@ const pendingCustom = new Map();
|
||||
const pendingAsks = new Map();
|
||||
const pendingPlans = new Map();
|
||||
const MAX_TURNS = 24;
|
||||
const CU_FREE_ROUNDS = new Set(['todo_write', 'update_goal', 'cu_observe', 'cu_find', 'cu_tree', 'cu_status', 'cu_zoom']);
|
||||
const SUBAGENT_TURNS = 8;
|
||||
const CUSTOM_TOOL_TIMEOUT_MS = 60000;
|
||||
const ASK_TIMEOUT_MS = 10 * 60 * 1000;
|
||||
@@ -877,7 +878,7 @@ async function runTurn(ctx) {
|
||||
}
|
||||
if (stopEarly) break;
|
||||
}
|
||||
if (prepared.some((item) => item.name !== 'todo_write' && item.name !== 'update_goal')) {
|
||||
if (prepared.some((item) => !CU_FREE_ROUNDS.has(item.name))) {
|
||||
toolBudget.markToolRound(budget);
|
||||
}
|
||||
if (stopEarly) {
|
||||
|
||||
Reference in New Issue
Block a user