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:
Eric Traut
2026-07-29 03:43:20 +00:00
committed by copyberry
parent 250de82bfb
commit b96ebfb312
5 changed files with 5 additions and 5 deletions

View File

@@ -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 {

View File

@@ -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",

View File

@@ -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

View File

@@ -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)",

View File

@@ -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",