mirror of
https://github.com/openai/codex.git
synced 2026-04-27 16:15:09 +00:00
initial surface projection for sandbox
This commit is contained in:
@@ -88,10 +88,13 @@ async fn auto_compaction_local_emits_started_and_completed_items() -> Result<()>
|
||||
let started = wait_for_context_compaction_started(&mut mcp).await?;
|
||||
let completed = wait_for_context_compaction_completed(&mut mcp).await?;
|
||||
|
||||
let ThreadItem::ContextCompaction { id: started_id } = started.item else {
|
||||
let ThreadItem::ContextCompaction { id: started_id, .. } = started.item else {
|
||||
unreachable!("started item should be context compaction");
|
||||
};
|
||||
let ThreadItem::ContextCompaction { id: completed_id } = completed.item else {
|
||||
let ThreadItem::ContextCompaction {
|
||||
id: completed_id, ..
|
||||
} = completed.item
|
||||
else {
|
||||
unreachable!("completed item should be context compaction");
|
||||
};
|
||||
|
||||
@@ -177,10 +180,13 @@ async fn auto_compaction_remote_emits_started_and_completed_items() -> Result<()
|
||||
let started = wait_for_context_compaction_started(&mut mcp).await?;
|
||||
let completed = wait_for_context_compaction_completed(&mut mcp).await?;
|
||||
|
||||
let ThreadItem::ContextCompaction { id: started_id } = started.item else {
|
||||
let ThreadItem::ContextCompaction { id: started_id, .. } = started.item else {
|
||||
unreachable!("started item should be context compaction");
|
||||
};
|
||||
let ThreadItem::ContextCompaction { id: completed_id } = completed.item else {
|
||||
let ThreadItem::ContextCompaction {
|
||||
id: completed_id, ..
|
||||
} = completed.item
|
||||
else {
|
||||
unreachable!("completed item should be context compaction");
|
||||
};
|
||||
|
||||
@@ -240,10 +246,13 @@ async fn thread_compact_start_triggers_compaction_and_returns_empty_response() -
|
||||
let started = wait_for_context_compaction_started(&mut mcp).await?;
|
||||
let completed = wait_for_context_compaction_completed(&mut mcp).await?;
|
||||
|
||||
let ThreadItem::ContextCompaction { id: started_id } = started.item else {
|
||||
let ThreadItem::ContextCompaction { id: started_id, .. } = started.item else {
|
||||
unreachable!("started item should be context compaction");
|
||||
};
|
||||
let ThreadItem::ContextCompaction { id: completed_id } = completed.item else {
|
||||
let ThreadItem::ContextCompaction {
|
||||
id: completed_id, ..
|
||||
} = completed.item
|
||||
else {
|
||||
unreachable!("completed item should be context compaction");
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user