Skip to content

Commit 30f7a08

Browse files
committed
fix(chat): Change token limit warning to use yellow color and gentler language
1 parent 6086d79 commit 30f7a08

File tree

1 file changed

+4
-4
lines changed
  • crates/q_cli/src/cli/chat

1 file changed

+4
-4
lines changed

crates/q_cli/src/cli/chat/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2065,14 +2065,14 @@ where
20652065

20662066
match warning_level {
20672067
TokenWarningLevel::Critical => {
2068-
// Memory constraint warning without explicit character count
2068+
// Memory constraint warning with gentler wording
20692069
execute!(
20702070
self.output,
2071-
style::SetForegroundColor(Color::Red),
2071+
style::SetForegroundColor(Color::Yellow),
20722072
style::SetAttribute(Attribute::Bold),
2073-
style::Print("\n🚨 CRITICAL: Conversation approaching maximum memory capacity.\n"),
2073+
style::Print("\n⚠️ This conversation is getting lengthy.\n"),
20742074
style::SetAttribute(Attribute::Reset),
2075-
style::Print("Use /compact IMMEDIATELY to avoid losing conversation context.\n\n"),
2075+
style::Print("To ensure continued smooth operation, please use /compact to summarize the conversation.\n\n"),
20762076
style::SetForegroundColor(Color::Reset)
20772077
)?;
20782078
},

0 commit comments

Comments
 (0)