From bb3e61843a391535587468806c986cd723783be3 Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Wed, 11 Mar 2026 17:34:22 -0700 Subject: [PATCH] tui: clarify queue replay stop comment Explain that the busy-path Stop return in dispatch_command() only matters for live dispatch because queued replay never reaches that branch. Co-authored-by: Codex --- codex-rs/tui/src/chatwidget.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 8b6e22a414..7ae220392c 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -4332,7 +4332,8 @@ impl ChatWidget { 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. + // instead of dispatching when a task is already running, so this Stop result is not + // material to replay behavior. return QueueReplayControl::Stop; } match cmd {