This commit is contained in:
Daniel Edrisian
2025-09-22 17:18:30 -07:00
parent 002d877c02
commit a2cfb125dc
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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);