initial surface projection for sandbox

This commit is contained in:
Roy Han
2026-03-11 12:07:33 -07:00
parent f5bb338fdb
commit 79d8f99a7f
13 changed files with 297 additions and 27 deletions

View File

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