Skip to content

Commit a88a2fc

Browse files
committed
use consistent naming
1 parent 887622b commit a88a2fc

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

internal/ui/messages.go

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,10 @@ func (r *MessageRenderer) RenderToolCallMessage(toolName, toolArgs string, times
271271

272272
// Create header with tool icon and name
273273
toolIcon := "🔧"
274-
toolNameFormatted := r.formatToolName(toolName)
275274
header := baseStyle.
276275
Foreground(toolColor).
277276
Bold(true).
278-
Render(fmt.Sprintf("%s Calling %s", toolIcon, toolNameFormatted))
277+
Render(fmt.Sprintf("%s Calling %s", toolIcon, toolName))
279278

280279
// Format arguments in a more readable way
281280
var argsContent string
@@ -326,7 +325,7 @@ func (r *MessageRenderer) RenderToolMessage(toolName, toolArgs, toolResult strin
326325
// Tool name styling
327326
toolNameText := baseStyle.
328327
Foreground(mutedColor).
329-
Render(fmt.Sprintf("%s: ", r.formatToolName(toolName)))
328+
Render(fmt.Sprintf("%s: ", toolName))
330329

331330
// Tool arguments styling
332331
argsText := baseStyle.
@@ -365,16 +364,6 @@ func (r *MessageRenderer) RenderToolMessage(toolName, toolArgs, toolResult strin
365364
}
366365
}
367366

368-
// formatToolName formats tool names for display
369-
func (r *MessageRenderer) formatToolName(name string) string {
370-
// Remove server prefix if present (server__tool format)
371-
parts := strings.Split(name, "__")
372-
if len(parts) == 2 {
373-
return parts[1]
374-
}
375-
return name
376-
}
377-
378367
// formatToolArgs formats tool arguments for display
379368
func (r *MessageRenderer) formatToolArgs(args string) string {
380369
// Remove outer braces and clean up JSON formatting

0 commit comments

Comments
 (0)