Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Show blocked goals as stalled in the TUI (#35886)

Eric Trautb96ebfb31286
diff --git a/codex-rs/tui/src/bottom_pane/footer.rs b/codex-rs/tui/src/bottom_pane/footer.rs
index bf7c5a5260..4e1689edad 100644
--- a/codex-rs/tui/src/bottom_pane/footer.rs
+++ b/codex-rs/tui/src/bottom_pane/footer.rs
@@ -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 {
diff --git a/codex-rs/tui/src/chatwidget/goal_menu.rs b/codex-rs/tui/src/chatwidget/goal_menu.rs
index 4c406f3793..d8e36c2486 100644
--- a/codex-rs/tui/src/chatwidget/goal_menu.rs
+++ b/codex-rs/tui/src/chatwidget/goal_menu.rs
@@ -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",
diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__goal_menu_blocked.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__goal_menu_blocked.snap
index 40de732645..c7e7b3fab6 100644
--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__goal_menu_blocked.snap
+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__goal_menu_blocked.snap
@@ -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
diff --git a/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs b/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs
index 5719e04dcb..eeb13bfd60 100644
--- a/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs
+++ b/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs
@@ -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)",
diff --git a/codex-rs/tui/src/goal_display.rs b/codex-rs/tui/src/goal_display.rs
index 210bac1076..0be4252e6b 100644
--- a/codex-rs/tui/src/goal_display.rs
+++ b/codex-rs/tui/src/goal_display.rs
@@ -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",