Address compaction marker and redaction review
This commit is contained in:
1 parent
9f0864ea82
commit
6079b7ba24
4 files changed
+145
-11
No files matched your search
@@ -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")
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user