Bump to 1.0.29: increase loop detection threshold from 3 to 30

This commit is contained in:
Gab
2026-04-12 11:37:26 +10:00
parent f7a8776265
commit 69773f46db
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.26",
"version": "1.0.29",
"name": "@toothfairyai/tfcode",
"type": "module",
"license": "MIT",

View File

@@ -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" -