The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(agent): drop unreachable trailing-gap branch from lean-sampling _render
kshitijk4poore17d49174d21
diff --git a/agent/context_compressor.py b/agent/context_compressor.pyindex 09f085029ae..ff9d4b98f8c 100644--- a/agent/context_compressor.py+++ b/agent/context_compressor.py@@ -3642,10 +3642,6 @@ Summary generation was unavailable, so this is a best-effort deterministic fallbparts.append(marker_template.format(first=cursor + 1, last=s, elided=elided))parts.append(separator.join(display_records[s:e]))cursor = e- if cursor < len(records):- sep_count = len(records) - cursor- elided = sum(len(records[i]) for i in range(cursor, len(records))) + len(separator) * sep_count- parts.append(marker_template.format(first=cursor + 1, last=len(records), elided=elided))return "".join(parts)def _finish(text: str) -> Tuple[str, Dict[str, int]]: