From 5fed142bf9d2c0726fbd7ba1659e25dcbfc04c3d Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 4 Nov 2026 16:22:19 -0800 Subject: [PATCH] fix(agent): byte-cap recovery status line no longer claims HTTP 413 Review note (BearHuddleston, optional): 400 and status-less byte caps now reach _recover_payload_too_large, so its status line drops the hardcoded '(413)'. --- agent/turn_overflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/turn_overflow.py b/agent/turn_overflow.py index 81024d4836..03e7e5e9f9 100644 --- a/agent/turn_overflow.py +++ b/agent/turn_overflow.py @@ -227,7 +227,7 @@ def _recover_payload_too_large(st: _Recovery, _retry: TurnRetryState) -> Overflo if exhausted is not None: return exhausted agent._buffer_diagnostic_status( - f"⚠️ Request payload too large (413) — compression attempt " + f"⚠️ Request payload too large — compression attempt " f"{st.compression_attempts}/{st.max_compression_attempts}..." )