mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
Fix
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user