From a2cfb125dc89988432b9e3eba9c8ee10d7b9ede9 Mon Sep 17 00:00:00 2001 From: Daniel Edrisian Date: Mon, 22 Sep 2025 17:18:30 -0700 Subject: [PATCH] Fix --- codex-rs/core/tests/suite/compact.rs | 4 ++-- codex-rs/tui/src/chatwidget.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/codex-rs/core/tests/suite/compact.rs b/codex-rs/core/tests/suite/compact.rs index c58ae681be..1e5464696a 100644 --- a/codex-rs/core/tests/suite/compact.rs +++ b/codex-rs/core/tests/suite/compact.rs @@ -914,11 +914,11 @@ async fn compact_trims_history_on_context_limit_error() { let n = compact_bodies.len(); let len1 = compact_bodies[n - 2]["input"] .as_array() - .map(|a| a.len()) + .map(Vec::len) .unwrap_or(0); let len2 = compact_bodies[n - 1]["input"] .as_array() - .map(|a| a.len()) + .map(Vec::len) .unwrap_or(0); assert!( len2 + 1 == len1, diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 5315b66dc4..64d7474ca3 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -430,7 +430,7 @@ impl ChatWidget { fn on_compact_approval_request(&mut self, id: String, ev: CompactApprovalRequestEvent) { let request = ApprovalRequest::Compact { - id: id, + id, reason: ev.reason, }; self.bottom_pane.push_approval_request(request);