summaryrefslogtreecommitdiffhomepage
path: root/internal/tui
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tui')
-rw-r--r--internal/tui/components/chat/message.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/internal/tui/components/chat/message.go b/internal/tui/components/chat/message.go
index 9c7ac2aa1..322f8bc0b 100644
--- a/internal/tui/components/chat/message.go
+++ b/internal/tui/components/chat/message.go
@@ -260,8 +260,6 @@ func toolName(name string) string {
return "Grep"
case tools.LSToolName:
return "List"
- case tools.SourcegraphToolName:
- return "Sourcegraph"
case tools.ViewToolName:
return "View"
case tools.WriteToolName:
@@ -288,8 +286,6 @@ func getToolAction(name string) string {
return "Searching content..."
case tools.LSToolName:
return "Listing directory..."
- case tools.SourcegraphToolName:
- return "Searching code..."
case tools.ViewToolName:
return "Reading file..."
case tools.WriteToolName:
@@ -428,10 +424,6 @@ func renderToolParams(paramWidth int, toolCall message.ToolCall) string {
path = "."
}
return renderParams(paramWidth, path)
- case tools.SourcegraphToolName:
- var params tools.SourcegraphParams
- json.Unmarshal([]byte(toolCall.Input), &params)
- return renderParams(paramWidth, params.Query)
case tools.ViewToolName:
var params tools.ViewParams
json.Unmarshal([]byte(toolCall.Input), &params)
@@ -518,8 +510,6 @@ func renderToolResponse(toolCall message.ToolCall, response message.ToolResult,
return baseStyle.Width(width).Foreground(t.TextMuted()).Render(resultContent)
case tools.LSToolName:
return baseStyle.Width(width).Foreground(t.TextMuted()).Render(resultContent)
- case tools.SourcegraphToolName:
- return baseStyle.Width(width).Foreground(t.TextMuted()).Render(resultContent)
case tools.ViewToolName:
metadata := tools.ViewResponseMetadata{}
json.Unmarshal([]byte(response.Metadata), &metadata)