summaryrefslogtreecommitdiffhomepage
path: root/internal/tui
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-14 10:42:16 -0500
committeradamdottv <[email protected]>2025-05-14 10:42:16 -0500
commit4c998d4f4ff2d9570796a81a95eb84d34d0a6939 (patch)
tree99575441e437b14e62dca524d77d4d7a583032ba /internal/tui
parentf7849c2d59d335c91d6ad079cabcda98c8b610f8 (diff)
downloadopencode-4c998d4f4ff2d9570796a81a95eb84d34d0a6939.tar.gz
opencode-4c998d4f4ff2d9570796a81a95eb84d34d0a6939.zip
chore: remove sourcegraph tool
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)