From 26bab00dabb6d20c9fd80a4873642c4df1b3f4b9 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 19 Jun 2025 09:59:12 -0400 Subject: remove opencode_ prefixes from tool names. unfortunately this will break all old sessions and share links. we'll be more backwards compatible in the future once we're more stable. --- packages/web/src/components/Share.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'packages/web/src') diff --git a/packages/web/src/components/Share.tsx b/packages/web/src/components/Share.tsx index a76de4fcb..12a734d13 100644 --- a/packages/web/src/components/Share.tsx +++ b/packages/web/src/components/Share.tsx @@ -859,7 +859,7 @@ export default function Share(props: { (partIndex() > 0 || !msg.metadata?.assistant)) || (msg.role === "assistant" && part.type === "tool-invocation" && - part.toolInvocation.toolName === "opencode_todoread") + part.toolInvocation.toolName === "todoread") ) return null @@ -1072,7 +1072,7 @@ export default function Share(props: { when={ msg.role === "assistant" && part.type === "tool-invocation" && - part.toolInvocation.toolName === "opencode_grep" && + part.toolInvocation.toolName === "grep" && part } > @@ -1175,7 +1175,7 @@ export default function Share(props: { when={ msg.role === "assistant" && part.type === "tool-invocation" && - part.toolInvocation.toolName === "opencode_glob" && + part.toolInvocation.toolName === "glob" && part } > @@ -1253,7 +1253,7 @@ export default function Share(props: { when={ msg.role === "assistant" && part.type === "tool-invocation" && - part.toolInvocation.toolName === "opencode_list" && + part.toolInvocation.toolName === "list" && part } > @@ -1322,7 +1322,7 @@ export default function Share(props: { when={ msg.role === "assistant" && part.type === "tool-invocation" && - part.toolInvocation.toolName === "opencode_read" && + part.toolInvocation.toolName === "read" && part } > @@ -1417,7 +1417,7 @@ export default function Share(props: { when={ msg.role === "assistant" && part.type === "tool-invocation" && - part.toolInvocation.toolName === "opencode_write" && + part.toolInvocation.toolName === "write" && part } > @@ -1503,7 +1503,7 @@ export default function Share(props: { when={ msg.role === "assistant" && part.type === "tool-invocation" && - part.toolInvocation.toolName === "opencode_edit" && + part.toolInvocation.toolName === "edit" && part } > @@ -1577,7 +1577,7 @@ export default function Share(props: { when={ msg.role === "assistant" && part.type === "tool-invocation" && - part.toolInvocation.toolName === "opencode_bash" && + part.toolInvocation.toolName === "bash" && part } > @@ -1620,7 +1620,7 @@ export default function Share(props: { msg.role === "assistant" && part.type === "tool-invocation" && part.toolInvocation.toolName === - "opencode_todowrite" && + "todowrite" && part } > @@ -1686,7 +1686,7 @@ export default function Share(props: { msg.role === "assistant" && part.type === "tool-invocation" && part.toolInvocation.toolName === - "opencode_webfetch" && + "webfetch" && part } > -- cgit v1.2.3