aboutsummaryrefslogtreecommitdiff
path: root/src/ui.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.rs')
-rw-r--r--src/ui.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ui.rs b/src/ui.rs
index 114905a7..99a8d38b 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -1652,12 +1652,12 @@ fn render_toast_notification(
///
/// | State | Icon | Color |
/// |--------------------|------|--------|
-/// | Busy | ● | Yellow |
+/// | Working | ● | Yellow |
/// | Done (idle+unseen) | ● | Blue |
/// | Idle (seen) | ○ | Green |
/// | Unknown | · | Gray |
///
-/// Filled dot = needs attention (working, or finished unseen).
+/// Filled dot = needs attention (blocked/working, or finished unseen).
/// Hollow dot = nothing to do here.
fn render_config_diagnostic(frame: &mut Frame, area: Rect, message: &str, p: &Palette) {
let text = format!(" config warning: {message} ");
@@ -1685,8 +1685,8 @@ fn render_config_diagnostic(frame: &mut Frame, area: Rect, message: &str, p: &Pa
/// Compact dot icon for workspace-level aggregate state (top section).
fn state_dot(state: AgentState, seen: bool, p: &Palette) -> (&'static str, Style) {
match (state, seen) {
- (AgentState::Waiting, _) => ("●", Style::default().fg(p.red)),
- (AgentState::Busy, _) => ("●", Style::default().fg(p.yellow)),
+ (AgentState::Blocked, _) => ("●", Style::default().fg(p.red)),
+ (AgentState::Working, _) => ("●", Style::default().fg(p.yellow)),
(AgentState::Idle, false) => ("●", Style::default().fg(p.teal)),
(AgentState::Idle, true) => ("○", Style::default().fg(p.green)),
(AgentState::Unknown, _) => ("·", Style::default().fg(p.overlay0)),
@@ -1694,11 +1694,11 @@ fn state_dot(state: AgentState, seen: bool, p: &Palette) -> (&'static str, Style
}
/// Rich icon for per-pane agent detail (bottom section).
-/// Uses animated spinner for busy state.
+/// Uses animated spinner for the working state.
fn agent_icon(state: AgentState, seen: bool, tick: u32, p: &Palette) -> (&'static str, Style) {
match (state, seen) {
- (AgentState::Waiting, _) => ("◉", Style::default().fg(p.red)),
- (AgentState::Busy, _) => (spinner_frame(tick), Style::default().fg(p.yellow)),
+ (AgentState::Blocked, _) => ("◉", Style::default().fg(p.red)),
+ (AgentState::Working, _) => (spinner_frame(tick), Style::default().fg(p.yellow)),
(AgentState::Idle, false) => ("●", Style::default().fg(p.teal)),
(AgentState::Idle, true) => ("✓", Style::default().fg(p.green)),
(AgentState::Unknown, _) => ("○", Style::default().fg(p.overlay0)),
@@ -1708,8 +1708,8 @@ fn agent_icon(state: AgentState, seen: bool, tick: u32, p: &Palette) -> (&'stati
/// State label for the agent detail panel.
fn state_label(state: AgentState, seen: bool) -> &'static str {
match (state, seen) {
- (AgentState::Waiting, _) => "waiting",
- (AgentState::Busy, _) => "running",
+ (AgentState::Blocked, _) => "blocked",
+ (AgentState::Working, _) => "working",
(AgentState::Idle, false) => "done",
(AgentState::Idle, true) => "idle",
(AgentState::Unknown, _) => "idle",
@@ -1719,8 +1719,8 @@ fn state_label(state: AgentState, seen: bool) -> &'static str {
/// Color for the state label text.
fn state_label_color(state: AgentState, seen: bool, p: &Palette) -> Color {
match (state, seen) {
- (AgentState::Waiting, _) => p.red,
- (AgentState::Busy, _) => p.yellow,
+ (AgentState::Blocked, _) => p.red,
+ (AgentState::Working, _) => p.yellow,
(AgentState::Idle, false) => p.teal,
(AgentState::Idle, true) => p.green,
(AgentState::Unknown, _) => p.overlay0,