mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-17 22:24:29 +00:00
Bump to 1.0.30: increase DOOM_LOOP_THRESHOLD from 3 to 30 in processor.ts
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"version": "1.0.29",
|
"version": "1.0.30",
|
||||||
"name": "@toothfairyai/tfcode",
|
"name": "@toothfairyai/tfcode",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import { PartID } from "./schema"
|
|||||||
import type { SessionID, MessageID } from "./schema"
|
import type { SessionID, MessageID } from "./schema"
|
||||||
|
|
||||||
export namespace SessionProcessor {
|
export namespace SessionProcessor {
|
||||||
const DOOM_LOOP_THRESHOLD = 3
|
const DOOM_LOOP_THRESHOLD = 30
|
||||||
const log = Log.create({ service: "session.processor" })
|
const log = Log.create({ service: "session.processor" })
|
||||||
|
|
||||||
export type Info = Awaited<ReturnType<typeof create>>
|
export type Info = Awaited<ReturnType<typeof create>>
|
||||||
@@ -201,7 +201,7 @@ export namespace SessionProcessor {
|
|||||||
// STOP the loop - do not execute the tool again
|
// STOP the loop - do not execute the tool again
|
||||||
blocked = true
|
blocked = true
|
||||||
throw new Error(
|
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