Suppress cancelled turn follow-up requests

This commit is contained in:
Ahmed Ibrahim
2026-03-04 20:33:30 -08:00
parent 39c4f2b06d
commit b3f11d668a
3 changed files with 82 additions and 0 deletions

View File

@@ -168,6 +168,18 @@ async fn thread_unsubscribe_during_turn_interrupts_turn_and_emits_thread_closed(
};
assert_eq!(payload.thread_id, thread_id);
tokio::time::sleep(std::time::Duration::from_millis(200)).await;
let requests = server
.received_requests()
.await
.context("failed to fetch received requests")?;
assert_eq!(
requests.len(),
1,
"unsubscribe should not trigger a follow-up responses request"
);
Ok(())
}