mirror of
https://github.com/openai/codex.git
synced 2026-11-05 16:29:31 +00:00
Fix /goal usage text for control commands (#26551)
## Why The TUI's `/goal` usage text only advertised the objective form even though `/goal clear`, `/goal edit`, `/goal pause`, and `/goal resume` are implemented. This made the lifecycle controls difficult to discover and allowed the duplicated help text to drift from actual behavior. Fixes #25530. ## What changed - Show the complete `/goal [<objective>|clear|edit|pause|resume]` syntax in usage messages. - Share one usage string across slash-command dispatch and goal-related app messages. - Add inline snapshot coverage for the control-command usage path.
This commit is contained in:
1 parent
e781816ead
commit
fb0993dd3b
4 files changed
+21
-3
No files matched your search
@@ -6,6 +6,7 @@ use crate::bottom_pane::SelectionAction;
|
||||
use crate::bottom_pane::SelectionItem;
|
||||
use crate::bottom_pane::SelectionViewParams;
|
||||
use crate::bottom_pane::popup_consts::standard_popup_hint_line;
|
||||
use crate::goal_display::GOAL_USAGE;
|
||||
use crate::goal_display::goal_status_label;
|
||||
use crate::goal_display::goal_usage_summary;
|
||||
use codex_app_server_protocol::ThreadGoal;
|
||||
@@ -39,7 +40,7 @@ impl App {
|
||||
|
||||
let Some(goal) = response.goal else {
|
||||
self.chat_widget.add_info_message(
|
||||
"Usage: /goal <objective>".to_string(),
|
||||
GOAL_USAGE.to_string(),
|
||||
Some("No goal is currently set.".to_string()),
|
||||
);
|
||||
return;
|
||||
@@ -280,7 +281,7 @@ impl App {
|
||||
self.chat_widget
|
||||
.add_error_message("No goal is currently set.".to_string());
|
||||
self.chat_widget.add_info_message(
|
||||
"Usage: /goal <objective>".to_string(),
|
||||
GOAL_USAGE.to_string(),
|
||||
Some("Create a goal before editing it.".to_string()),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user