Skip to content

Commit 432326b

Browse files
committed
refactor: update status messages for clarity and prioritization in chat rendering
1 parent c9d63ce commit 432326b

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

crates/agentic-tui/src/ui/chat.rs

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -117,30 +117,26 @@ pub fn render_chat(
117117

118118
frame.render_widget(logo_paragraph, vertical_chunks[1]);
119119

120-
// Status-based message
120+
// Status-based message - show one error at a time, prioritizing local > cloud > api key
121121
let (status_text, status_style) = match agent_status {
122-
AgentStatus::Ready => (
123-
"Press [ENTER] to Start Ruixen",
124-
theme.ratatui_style(Element::Accent),
125-
),
126122
AgentStatus::LocalEndpointError => (
127-
"⚠️ Local endpoint error - Check settings [S]",
123+
"Local not ready - see [S]ettings",
128124
theme.ratatui_style(Element::Warning),
129125
),
130-
AgentStatus::CloudEndpointError => (
131-
"⚠️ Cloud endpoint error - Check settings [S]",
126+
AgentStatus::CheckLocalModel => (
127+
"Local not ready - see [S]ettings",
132128
theme.ratatui_style(Element::Warning),
133129
),
134-
AgentStatus::CheckLocalModel => (
135-
"⚠️ Local model not configured - Check settings [S]",
130+
AgentStatus::CloudEndpointError => (
131+
"Cloud not ready - see [S]ettings",
136132
theme.ratatui_style(Element::Warning),
137133
),
138134
AgentStatus::CheckCloudModel => (
139-
"⚠️ Cloud model not configured - Check settings [S]",
135+
"Cloud not ready - see [S]ettings",
140136
theme.ratatui_style(Element::Warning),
141137
),
142138
AgentStatus::CheckApiKey => (
143-
"⚠️ API key not configured - Check settings [S]",
139+
"API Key not ready - see [S]ettings",
144140
theme.ratatui_style(Element::Warning),
145141
),
146142
AgentStatus::ValidatingLocal => (
@@ -152,8 +148,8 @@ pub fn render_chat(
152148
theme.ratatui_style(Element::Info),
153149
),
154150
_ => (
155-
"Press [ENTER] when local and cloud models are ready",
156-
theme.ratatui_style(Element::Inactive),
151+
"Press [ENTER] to start Ruixen",
152+
theme.ratatui_style(Element::Accent),
157153
),
158154
};
159155

0 commit comments

Comments
 (0)