From 462071ac7bf96a61128d60b90224f11f28acb1e1 Mon Sep 17 00:00:00 2001 From: Felipe Coury Date: Wed, 3 Jun 2026 16:36:39 -0300 Subject: [PATCH] fix(tui): send suggestion cancel flag as bool --- codex-rs/tui/src/app/background_requests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/tui/src/app/background_requests.rs b/codex-rs/tui/src/app/background_requests.rs index 7ab28cb6b3..30b4526d23 100644 --- a/codex-rs/tui/src/app/background_requests.rs +++ b/codex-rs/tui/src/app/background_requests.rs @@ -41,7 +41,7 @@ pub(super) async fn fetch_next_prompt_suggestion( params: ThreadSuggestNextPromptParams { thread_id: thread_id.to_string(), cancellation_token: Some(cancellation_token), - cancel: None, + cancel: false, }, }) .await @@ -62,7 +62,7 @@ pub(super) async fn cancel_next_prompt_suggestion( params: ThreadSuggestNextPromptParams { thread_id: thread_id.to_string(), cancellation_token: Some(cancellation_token), - cancel: Some(/*cancel*/ true), + cancel: true, }, }) .await