mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:22:05 +00:00
Preserve Guardian review evidence across compaction (#41879)
## Why Guardian reviews need the original conversation evidence even after the parent context has been compacted, while rollback must still remove evidence from reverted turns. ## What changed - Build synchronous and asynchronous Guardian transcripts from the retained review-history snapshot. - Use the shared Guardian transcript collector for consistent entry formatting, tool attribution, and per-entry truncation while preserving the existing transcript retention budgets. ## Testing - Add app-server coverage for retaining user and tool evidence after compaction and discarding it after rollback. - Extend transcript tests for standalone tool outputs, shell calls, attribution, truncation, and retention limits. GitOrigin-RevId: a18b1176f14a4d006c263aa82d4e593afee66bc3
This commit is contained in:
1 parent
032d15cba7
commit
9f97cb79eb
10 files changed
+549
-253
No files matched your search
@@ -94,7 +94,7 @@ pub(super) fn build(
|
||||
_ => None,
|
||||
})
|
||||
.collect();
|
||||
let transcript = transcript_config.build(input.conversation_history.items());
|
||||
let transcript = transcript_config.build_snapshot(input.conversation_history.as_ref());
|
||||
let images = render_images(
|
||||
input.conversation_history.as_ref(),
|
||||
transcript_config,
|
||||
|
||||
Reference in new issue
Block a user