diff options
| author | Aiden Cline <[email protected]> | 2026-04-29 13:15:44 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-29 13:15:44 -0500 |
| commit | 6aa8e894b1cc770e099f8db4338508d1b5d25c04 (patch) | |
| tree | 50d40ecdf10a899c89950d53a6669400833dbd2e /packages/ui/src/components | |
| parent | 00bb9836a60f1dcdd0ce5078b05d12f749fdde66 (diff) | |
| download | opencode-6aa8e894b1cc770e099f8db4338508d1b5d25c04.tar.gz opencode-6aa8e894b1cc770e099f8db4338508d1b5d25c04.zip | |
chore: rm broken codesearch tool (#24992)
Diffstat (limited to 'packages/ui/src/components')
| -rw-r--r-- | packages/ui/src/components/message-part.tsx | 32 | ||||
| -rw-r--r-- | packages/ui/src/components/tool-error-card.stories.tsx | 6 | ||||
| -rw-r--r-- | packages/ui/src/components/tool-error-card.tsx | 1 |
3 files changed, 1 insertions, 38 deletions
diff --git a/packages/ui/src/components/message-part.tsx b/packages/ui/src/components/message-part.tsx index 013272205..cc046fdfc 100644 --- a/packages/ui/src/components/message-part.tsx +++ b/packages/ui/src/components/message-part.tsx @@ -356,12 +356,6 @@ export function getToolInfo(tool: string, input: any = {}): ToolInfo { title: i18n.t("ui.tool.websearch"), subtitle: input.query, } - case "codesearch": - return { - icon: "code", - title: i18n.t("ui.tool.codesearch"), - subtitle: input.query, - } case "task": { const type = typeof input.subagent_type === "string" && input.subagent_type @@ -1711,32 +1705,6 @@ ToolRegistry.register({ }) ToolRegistry.register({ - name: "codesearch", - render(props) { - const i18n = useI18n() - const query = createMemo(() => { - const value = props.input.query - if (typeof value !== "string") return "" - return value - }) - - return ( - <BasicTool - {...props} - icon="code" - trigger={{ - title: i18n.t("ui.tool.codesearch"), - subtitle: query(), - subtitleClass: "exa-tool-query", - }} - > - <ExaOutput output={props.output} /> - </BasicTool> - ) - }, -}) - -ToolRegistry.register({ name: "task", render(props) { const data = useData() diff --git a/packages/ui/src/components/tool-error-card.stories.tsx b/packages/ui/src/components/tool-error-card.stories.tsx index 03349ce01..dd6007581 100644 --- a/packages/ui/src/components/tool-error-card.stories.tsx +++ b/packages/ui/src/components/tool-error-card.stories.tsx @@ -44,10 +44,6 @@ const samples = [ error: "websearch Rate limited: Please try again in 30 seconds", }, { - tool: "codesearch", - error: "codesearch Timeout: exceeded 120s", - }, - { tool: "question", error: "question Dismissed: user dismissed this question", }, @@ -72,7 +68,7 @@ export default { argTypes: { tool: { control: "select", - options: ["apply_patch", "bash", "read", "glob", "grep", "webfetch", "websearch", "codesearch", "question"], + options: ["apply_patch", "bash", "read", "glob", "grep", "webfetch", "websearch", "question"], }, error: { control: "text", diff --git a/packages/ui/src/components/tool-error-card.tsx b/packages/ui/src/components/tool-error-card.tsx index 9983e2fe7..4f0df6cb4 100644 --- a/packages/ui/src/components/tool-error-card.tsx +++ b/packages/ui/src/components/tool-error-card.tsx @@ -33,7 +33,6 @@ export function ToolErrorCard(props: ToolErrorCardProps) { task: "ui.tool.task", webfetch: "ui.tool.webfetch", websearch: "ui.tool.websearch", - codesearch: "ui.tool.codesearch", bash: "ui.tool.shell", apply_patch: "ui.tool.patch", question: "ui.tool.questions", |
