From 69773f46dbe9615425b963ab58e2366002ca099f Mon Sep 17 00:00:00 2001 From: Gab Date: Sun, 12 Apr 2026 11:37:26 +1000 Subject: [PATCH] Bump to 1.0.29: increase loop detection threshold from 3 to 30 --- packages/tfcode/package.json | 2 +- packages/tfcode/src/tool/read.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/tfcode/package.json b/packages/tfcode/package.json index 2bce5958a..2fef6e32a 100644 --- a/packages/tfcode/package.json +++ b/packages/tfcode/package.json @@ -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", diff --git a/packages/tfcode/src/tool/read.ts b/packages/tfcode/src/tool/read.ts index 477dd1f06..a4baa8fd8 100644 --- a/packages/tfcode/src/tool/read.ts +++ b/packages/tfcode/src/tool/read.ts @@ -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 ⚠️ 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" -