style: change agent mode tool color from royal blue to light gray

This commit is contained in:
Dhanji R. Prasanna
2026-01-11 16:26:20 +05:30
parent 874be7b459
commit 9c71d12561
2 changed files with 4 additions and 4 deletions

View File

@@ -823,7 +823,7 @@ async fn run_agent_mode(
// Create agent with custom system prompt // Create agent with custom system prompt
let ui_writer = ConsoleUiWriter::new(); let ui_writer = ConsoleUiWriter::new();
// Set agent mode on UI writer for visual differentiation (royal blue tool names) // Set agent mode on UI writer for visual differentiation (light gray tool names)
ui_writer.set_agent_mode(true); ui_writer.set_agent_mode(true);
let mut agent = Agent::new_with_custom_prompt( let mut agent = Agent::new_with_custom_prompt(
config, config,

View File

@@ -117,10 +117,10 @@ impl UiWriter for ConsoleUiWriter {
// This ensures the header isn't cleared by update_tool_output_line // This ensures the header isn't cleared by update_tool_output_line
*self.output_line_printed.lock().unwrap() = false; *self.output_line_printed.lock().unwrap() = false;
// Now print the tool header with the most important arg // Now print the tool header with the most important arg
// Use royal blue in agent mode, bold green otherwise // Use light gray/silver in agent mode, bold green otherwise
let is_agent_mode = *self.is_agent_mode.lock().unwrap(); let is_agent_mode = *self.is_agent_mode.lock().unwrap();
// Royal blue: \x1b[38;5;69m, Bold green: \x1b[1;32m // Light gray/silver: \x1b[38;5;250m, Bold green: \x1b[1;32m
let tool_color = if is_agent_mode { "\x1b[1;38;5;69m" } else { "\x1b[1;32m" }; let tool_color = if is_agent_mode { "\x1b[1;38;5;250m" } else { "\x1b[1;32m" };
if let Some(tool_name) = self.current_tool_name.lock().unwrap().as_ref() { if let Some(tool_name) = self.current_tool_name.lock().unwrap().as_ref() {
let args = self.current_tool_args.lock().unwrap(); let args = self.current_tool_args.lock().unwrap();