Bump to 1.0.30: increase DOOM_LOOP_THRESHOLD from 3 to 30 in processor.ts

This commit is contained in:
Gab
2026-04-12 14:06:00 +10:00
parent 69773f46db
commit 85b8e85569
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/package.json",
"version": "1.0.29",
"version": "1.0.30",
"name": "@toothfairyai/tfcode",
"type": "module",
"license": "MIT",

View File

@@ -18,7 +18,7 @@ import { PartID } from "./schema"
import type { SessionID, MessageID } from "./schema"
export namespace SessionProcessor {
const DOOM_LOOP_THRESHOLD = 3
const DOOM_LOOP_THRESHOLD = 30
const log = Log.create({ service: "session.processor" })
export type Info = Awaited<ReturnType<typeof create>>
@@ -201,7 +201,7 @@ export namespace SessionProcessor {
// STOP the loop - do not execute the tool again
blocked = true
throw new Error(
`Verification loop detected: Tool "${value.toolName}" called 3+ times with ${isSimilarLoop ? "similar" : "identical"} parameters. Move to next step or ask for guidance.`,
`Verification loop detected: Tool "${value.toolName}" called 30+ times with ${isSimilarLoop ? "similar" : "identical"} parameters. Move to next step or ask for guidance.`,
)
}
}