From 5c56805a7475eafa5ba5cc991e41c3a31d39c840 Mon Sep 17 00:00:00 2001 From: iamagenius00 Date: Tue, 28 Apr 2026 01:26:46 +0800 Subject: [PATCH] fix(compression): align fallback placeholder wording with gateway warning The fallback placeholder said "N conversation turns were removed" while the gateway warning said "N historical message(s) were removed". Use "messages" in both so users don't wonder if the two counters refer to different things. --- agent/context_compressor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/context_compressor.py b/agent/context_compressor.py index e9f4588fa..2c87309ae 100644 --- a/agent/context_compressor.py +++ b/agent/context_compressor.py @@ -1289,9 +1289,9 @@ The user has requested that this compaction PRIORITISE preserving all informatio self._last_summary_fallback_used = True summary = ( f"{SUMMARY_PREFIX}\n" - f"Summary generation was unavailable. {n_dropped} conversation turns were " + f"Summary generation was unavailable. {n_dropped} message(s) were " f"removed to free context space but could not be summarized. The removed " - f"turns contained earlier work in this session. Continue based on the " + f"messages contained earlier work in this session. Continue based on the " f"recent messages below and the current state of any files or resources." )