mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
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`.
This commit is contained in:
committed by
GitHub
Unverified
parent
af95662a70
commit
2307aa8d98
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user