mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
Add context compaction snapshots
This commit is contained in:
@@ -2302,6 +2302,22 @@ mod tests {
|
||||
insta::assert_snapshot!(rendered);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn context_compaction_active_snapshot() {
|
||||
let cell = new_active_context_compaction("compaction-1".to_string(), false);
|
||||
let rendered = render_lines(&cell.display_lines(64)).join("\n");
|
||||
|
||||
insta::assert_snapshot!(rendered);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn context_compaction_completed_snapshot() {
|
||||
let cell = new_context_compaction_completed("compaction-1".to_string());
|
||||
let rendered = render_lines(&cell.display_lines(64)).join("\n");
|
||||
|
||||
insta::assert_snapshot!(rendered);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn active_mcp_tool_call_snapshot() {
|
||||
let invocation = McpInvocation {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
source: tui/src/history_cell.rs
|
||||
expression: rendered
|
||||
---
|
||||
• Compacting context
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
source: tui/src/history_cell.rs
|
||||
expression: rendered
|
||||
---
|
||||
• Context compacted.
|
||||
Reference in New Issue
Block a user