From 90dcf6a2f105f3ef7b70f76caa98068cd95ca505 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Thu, 19 Mar 2026 08:02:26 -0600 Subject: [PATCH] =?UTF-8?q?fix:=20disable=20=5Fapply=5Ffidelity=20again=20?= =?UTF-8?q?=E2=80=94=20stubs=20cause=20rapid=20retry=20loops?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Second time disabling. The auto-stub replacement produces content that opencode rejects, triggering 16+ retries per second. Needs deeper investigation into which content types can be safely stubbed vs which ones break the model. --- src/mnemosyne/gateway.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mnemosyne/gateway.py b/src/mnemosyne/gateway.py index 218a38d..4858921 100644 --- a/src/mnemosyne/gateway.py +++ b/src/mnemosyne/gateway.py @@ -2303,7 +2303,9 @@ def create_app( # ) # 4b. Apply fidelity-based content replacement - _apply_fidelity(payload, session) + # DISABLED: stubs break model responses causing rapid retry loops. + # Needs investigation into what content types are safe to stub. + # _apply_fidelity(payload, session) # Place cache_control markers at optimal positions _place_cache_controls(payload)