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.
This commit is contained in:
iamagenius00
2026-04-28 01:26:46 +08:00
committed by Teknium
parent c61bc3f72c
commit 5c56805a74

View File

@@ -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."
)