Skip to content

Commit 2307aa8

Browse files
authored
Allow /statusline and /title slash commands during active turns (#19917)
- Marks `/title` and `/statusline` as available during active tasks. - Extends the existing slash-command availability test coverage to include these commands alongside `/goal`.
1 parent af95662 commit 2307aa8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

codex-rs/tui/src/slash_command.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ impl SlashCommand {
196196
| SlashCommand::Mcp
197197
| SlashCommand::Apps
198198
| SlashCommand::Plugins
199+
| SlashCommand::Title
200+
| SlashCommand::Statusline
199201
| SlashCommand::AutoReview
200202
| SlashCommand::Feedback
201203
| SlashCommand::Quit
@@ -207,9 +209,7 @@ impl SlashCommand {
207209
SlashCommand::Settings => true,
208210
SlashCommand::Collab => true,
209211
SlashCommand::Agent | SlashCommand::MultiAgents => true,
210-
SlashCommand::Statusline => false,
211212
SlashCommand::Theme => false,
212-
SlashCommand::Title => false,
213213
}
214214
}
215215

@@ -249,8 +249,10 @@ mod tests {
249249
}
250250

251251
#[test]
252-
fn goal_command_is_available_during_task() {
252+
fn certain_commands_are_available_during_task() {
253253
assert!(SlashCommand::Goal.available_during_task());
254+
assert!(SlashCommand::Title.available_during_task());
255+
assert!(SlashCommand::Statusline.available_during_task());
254256
}
255257

256258
#[test]

0 commit comments

Comments
 (0)