From 2206269fe4e0e2dd60d151c427e4d28cf00a2150 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Sun, 12 Apr 2026 13:53:53 -0700 Subject: [PATCH] codex: clarify detached pending scheduler task --- codex-rs/core/src/tasks/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/src/tasks/mod.rs b/codex-rs/core/src/tasks/mod.rs index e3f19363eb..ecbc57a795 100644 --- a/codex-rs/core/src/tasks/mod.rs +++ b/codex-rs/core/src/tasks/mod.rs @@ -535,14 +535,14 @@ impl Session { }); self.send_event(turn_context.as_ref(), event).await; let session = Arc::clone(self); - let _scheduler = tokio::task::spawn_blocking(move || { + drop(tokio::task::spawn_blocking(move || { tokio::runtime::Handle::current().block_on(async move { session.maybe_start_pending_timer().await; if should_clear_active_turn { session.maybe_start_turn_for_pending_work().await; } }); - }); + })); } async fn take_active_turn(&self) -> Option {