mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-14 12:44:36 +00:00
Bump to 1.0.29: increase loop detection threshold from 3 to 30
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/package.json",
|
||||
"version": "1.0.26",
|
||||
"version": "1.0.29",
|
||||
"name": "@toothfairyai/tfcode",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -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