mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-15 05:04:50 +00:00
Bump to 1.0.29: increase loop detection threshold from 3 to 30
This commit is contained in:
@@ -227,9 +227,9 @@ export const ReadTool = Tool.define("read", {
|
||||
const count = (counts.get(key) ?? 0) + 1
|
||||
counts.set(key, count)
|
||||
|
||||
if (count >= 3) {
|
||||
if (count >= 30) {
|
||||
const warning =
|
||||
count === 3
|
||||
count === 30
|
||||
? `\n\n<system-reminder>
|
||||
⚠️ WARNING: You have read this file ${count} times in this session. This indicates a verification loop.
|
||||
Your previous edits to this file have been applied successfully. Do NOT read this file again to "verify" -
|
||||
|
||||
Reference in New Issue
Block a user