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.
This commit is contained in:
Dax Raad
2025-06-19 09:59:12 -04:00
parent 568c04753e
commit 26bab00dab
18 changed files with 59 additions and 59 deletions

View File

@@ -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
}
>