@blockrun/franklin 3.16.1 → 3.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/loop.js +1 -1
- package/package.json +1 -1
package/dist/agent/loop.js
CHANGED
|
@@ -802,7 +802,7 @@ export async function interactiveSession(config, getUserInput, onEvent, onAbortR
|
|
|
802
802
|
let turnToolCalls = 0; // Total tool calls this user turn
|
|
803
803
|
const turnToolCounts = new Map(); // Per-tool-name counts this turn
|
|
804
804
|
const readFileCache = new Set(); // Files already read (dedup)
|
|
805
|
-
const MAX_TOOL_CALLS_PER_TURN =
|
|
805
|
+
const MAX_TOOL_CALLS_PER_TURN = 40; // Soft cap — model gets a stop nudge but can finish. Raised from 25 (3.16.2): real exploratory work routinely needs 25-35 distinct calls, and the soft cap was firing on legit sessions multiple times per day.
|
|
806
806
|
// Hard break threshold for runaways. The cap above is soft — we
|
|
807
807
|
// inject a "limit reached" tool_result once and let the model
|
|
808
808
|
// close out. If it ignores that signal and keeps calling tools,
|
package/package.json
CHANGED