From 6f2d274d5de705a1420566ce40dde45a35ae4607 Mon Sep 17 00:00:00 2001 From: Aaron Nelson Date: Sat, 2 May 2026 22:56:33 +0000 Subject: [PATCH] api.py: remove 50KB truncation from /api/corpus/retry (completes F14) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The F14 fix on 2026-05-01 removed text[:50000] truncation from watcher.py, ingest.py, and corpus_integrity.py. The retry endpoint in api.py was missed — clicking 'Retry' on an ingest-failed file in the SettingsPanel re-introduced the exact truncation pattern F14 was meant to eliminate. Found by Track 1 inventory 2026-05-02 (Finding 2 / divergence #2). --- scripts/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/api.py b/scripts/api.py index f5bd18e..b69e5a6 100644 --- a/scripts/api.py +++ b/scripts/api.py @@ -1071,7 +1071,7 @@ async def corpus_retry(request: Request, auth: str = Depends(require_auth)): ON CONFLICT (source) DO UPDATE SET full_text = EXCLUDED.full_text, char_length = EXCLUDED.char_length, enqueued_at = NOW(), completed_at = NULL, failed_at = NULL, attempts = 0 - """, (source, text[:50000], len(text))) + """, (source, text, len(text))) cur.execute(""" UPDATE ingest_failures SET retry_count = retry_count + 1, last_failed_at = NOW() WHERE source = %s