mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-15 13:14:35 +00:00
Bump to 1.0.30: increase DOOM_LOOP_THRESHOLD from 3 to 30 in processor.ts
This commit is contained in:
@@ -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.`,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user