Address compaction marker and redaction review

This commit is contained in:
Frank Song authored and nesquena-hermes committed 2026-06-26 00:12:09 +00:00
1 parent 9f0864ea82
commit 6079b7ba24
4 files changed
+145 -11

No files matched your search

+2 -1
View File
@@ -64,9 +64,10 @@ def is_context_compression_marker(message):
message.get("content", ""),
part_types={"text", "input_text", "output_text"},
).lower().lstrip()
synthetic_unbracketed_marker = bool(message.get("_compressed_summary"))
return (
text.startswith("[context compaction")
or text.startswith("context compaction")
or (synthetic_unbracketed_marker and text.startswith("context compaction"))
or text.startswith("[your active task list was preserved across context compression]")
or text.startswith("[session arc summary")
)