File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed
crates/chat-cli/src/cli/chat Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -3471,15 +3471,6 @@ impl ChatSession {
34713471 parent_message_id : None ,
34723472 } ;
34733473 self . stdout . send ( Event :: ToolCallStart ( tool_call_start) ) ?;
3474- } else if let Tool :: Custom ( ref tool) = tool_use. tool {
3475- queue ! (
3476- self . stdout,
3477- StyledText :: reset( ) ,
3478- style:: Print ( " from mcp server " ) ,
3479- StyledText :: emphasis_fg( ) ,
3480- style:: Print ( & tool. server_name) ,
3481- StyledText :: reset( ) ,
3482- ) ?;
34833474 }
34843475
34853476 tool_use
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ impl CustomTool {
150150 queue ! (
151151 output,
152152 style:: Print ( "Running " ) ,
153- StyledText :: success_fg ( ) ,
153+ StyledText :: brand_fg ( ) ,
154154 style:: Print ( & self . name) ,
155155 StyledText :: reset( ) ,
156156 ) ?;
Original file line number Diff line number Diff line change @@ -214,14 +214,27 @@ impl Tool {
214214 queue,
215215 style,
216216 } ;
217- queue ! (
217+ if let Tool :: Custom ( tool) = self {
218+ queue ! (
219+ output,
220+ StyledText :: secondary_fg( ) ,
221+ style:: Print ( " (from mcp server: " ) ,
222+ style:: Print ( & tool. server_name) ,
223+ style:: Print ( ", using tool: " ) ,
224+ style:: Print ( self . display_name( ) ) ,
225+ style:: Print ( ")" ) ,
226+ StyledText :: reset( ) ,
227+ ) ?;
228+ } else {
229+ queue ! (
218230 output,
219231 StyledText :: secondary_fg( ) ,
220232 style:: Print ( " (using tool: " ) ,
221233 style:: Print ( self . display_name( ) ) ,
222234 style:: Print ( ")" ) ,
223235 StyledText :: reset( ) ,
224- ) ?;
236+ ) ?;
237+ }
225238 } ;
226239
227240 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments