mirror of
https://github.com/openai/codex.git
synced 2026-08-27 13:49:27 +00:00
Show blocked goals as stalled in the TUI (#35886)
## What changed - Display `Blocked` goal statuses as “stalled” in the goal menu and goal status footer. - Update the goal menu snapshot and footer formatting test expectations. GitOrigin-RevId: f3d8212d939f0d76354048231346328972226274
This commit is contained in:
@@ -540,7 +540,7 @@ pub(crate) fn goal_status_indicator_line(
|
||||
}
|
||||
}
|
||||
GoalStatusIndicator::Paused => "Goal paused (/goal resume)".to_string(),
|
||||
GoalStatusIndicator::Blocked => "Goal blocked (/goal resume)".to_string(),
|
||||
GoalStatusIndicator::Blocked => "Goal stalled (/goal resume)".to_string(),
|
||||
GoalStatusIndicator::UsageLimited => "Goal hit usage limits (/goal resume)".to_string(),
|
||||
GoalStatusIndicator::BudgetLimited { usage } => {
|
||||
if let Some(usage) = usage {
|
||||
|
||||
@@ -123,7 +123,7 @@ fn goal_status_label(status: AppThreadGoalStatus) -> &'static str {
|
||||
match status {
|
||||
AppThreadGoalStatus::Active => "active",
|
||||
AppThreadGoalStatus::Paused => "paused",
|
||||
AppThreadGoalStatus::Blocked => "blocked",
|
||||
AppThreadGoalStatus::Blocked => "stalled",
|
||||
AppThreadGoalStatus::UsageLimited => "usage limited",
|
||||
AppThreadGoalStatus::BudgetLimited => "limited by budget",
|
||||
AppThreadGoalStatus::Complete => "complete",
|
||||
|
||||
@@ -3,7 +3,7 @@ source: tui/src/chatwidget/tests/goal_menu.rs
|
||||
expression: rendered_goal_summary(&mut rx)
|
||||
---
|
||||
Goal
|
||||
Status: blocked
|
||||
Status: stalled
|
||||
Objective: Keep improving the bare goal command until it feels calm and useful.
|
||||
Time used: 1m
|
||||
Tokens used: 12.5K
|
||||
|
||||
@@ -3573,7 +3573,7 @@ fn goal_status_indicator_line_formats_goal_text() {
|
||||
"Goal unmet (4K / 5K tokens)",
|
||||
),
|
||||
(GoalStatusIndicator::Paused, "Goal paused (/goal resume)"),
|
||||
(GoalStatusIndicator::Blocked, "Goal blocked (/goal resume)"),
|
||||
(GoalStatusIndicator::Blocked, "Goal stalled (/goal resume)"),
|
||||
(
|
||||
GoalStatusIndicator::UsageLimited,
|
||||
"Goal hit usage limits (/goal resume)",
|
||||
|
||||
@@ -34,7 +34,7 @@ pub(crate) fn goal_status_label(status: ThreadGoalStatus) -> &'static str {
|
||||
match status {
|
||||
ThreadGoalStatus::Active => "active",
|
||||
ThreadGoalStatus::Paused => "paused",
|
||||
ThreadGoalStatus::Blocked => "blocked",
|
||||
ThreadGoalStatus::Blocked => "stalled",
|
||||
ThreadGoalStatus::UsageLimited => "usage limited",
|
||||
ThreadGoalStatus::BudgetLimited => "limited by budget",
|
||||
ThreadGoalStatus::Complete => "complete",
|
||||
|
||||
Reference in New Issue
Block a user