From 393740dbed884baa14647f0f8dc355fe123a79bb Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Wed, 11 Mar 2026 16:41:47 -0700 Subject: [PATCH] tui: clarify live slash queueing branch Document that the busy-path queueing in dispatch_command is only reached during live slash dispatch, not queued replay, so the returned drain-control value is effectively a throwaway for that branch. Co-authored-by: Codex --- codex-rs/tui/src/chatwidget.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index f8d4cdebd5..27d7f3900d 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -4323,6 +4323,9 @@ impl ChatWidget { && !matches!(cmd, SlashCommand::Model | SlashCommand::Review) { self.queue_user_message(format!("/{}", cmd.command()).into()); + // This busy-path queueing only happens for live command dispatch. Queued replay + // executes slash drafts only while idle, and handle_serialized_slash_command() queues + // instead of dispatching when a task is already running. return QueueReplayControl::Stop; } match cmd {