From 9cd0e96cee4938d08ace8f3a027a8264de4c99eb Mon Sep 17 00:00:00 2001 From: canvrno-oai Date: Mon, 27 Apr 2026 19:57:55 -0700 Subject: [PATCH] Make /statusline and /title available when thread is active --- codex-rs/tui/src/slash_command.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/codex-rs/tui/src/slash_command.rs b/codex-rs/tui/src/slash_command.rs index bd6ff71bc561..55dc36d53c75 100644 --- a/codex-rs/tui/src/slash_command.rs +++ b/codex-rs/tui/src/slash_command.rs @@ -196,6 +196,8 @@ impl SlashCommand { | SlashCommand::Mcp | SlashCommand::Apps | SlashCommand::Plugins + | SlashCommand::Title + | SlashCommand::Statusline | SlashCommand::AutoReview | SlashCommand::Feedback | SlashCommand::Quit @@ -207,9 +209,7 @@ impl SlashCommand { SlashCommand::Settings => true, SlashCommand::Collab => true, SlashCommand::Agent | SlashCommand::MultiAgents => true, - SlashCommand::Statusline => false, SlashCommand::Theme => false, - SlashCommand::Title => false, } } @@ -249,8 +249,10 @@ mod tests { } #[test] - fn goal_command_is_available_during_task() { + fn certain_commands_are_available_during_task() { assert!(SlashCommand::Goal.available_during_task()); + assert!(SlashCommand::Title.available_during_task()); + assert!(SlashCommand::Statusline.available_during_task()); } #[test]