summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/components
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-06-19 12:20:30 -0400
committerJay V <[email protected]>2025-06-19 12:20:30 -0400
commitf1f3f8d12c2cbf2e8f96e7b9d99cdc196e5a78a9 (patch)
tree742d75d5ef121121e2cc530453b90be4f1e75fe7 /packages/web/src/components
parente78d3b54bff1d9c1ddc6043a1994beecf227c67f (diff)
downloadopencode-f1f3f8d12c2cbf2e8f96e7b9d99cdc196e5a78a9.tar.gz
opencode-f1f3f8d12c2cbf2e8f96e7b9d99cdc196e5a78a9.zip
ignore: share version
Diffstat (limited to 'packages/web/src/components')
-rw-r--r--packages/web/src/components/Share.tsx14
1 files changed, 8 insertions, 6 deletions
diff --git a/packages/web/src/components/Share.tsx b/packages/web/src/components/Share.tsx
index 12a734d13..e125912f6 100644
--- a/packages/web/src/components/Share.tsx
+++ b/packages/web/src/components/Share.tsx
@@ -801,7 +801,9 @@ export default function Share(props: {
<div data-stat-icon title="opencode">
<IconOpencode width={16} height={16} />
</div>
- <span>v${store.info?.version}</span>
+ <Show when={store.info?.version} fallback="v0.0.1">
+ <span>v${store.info?.version}</span>
+ </Show>
</li>
</ul>
</Show>
@@ -1261,9 +1263,9 @@ export default function Share(props: {
const path = createMemo(() =>
toolData()?.args.path !== data().rootDir
? stripWorkingDirectory(
- toolData()?.args.path,
- data().rootDir,
- )
+ toolData()?.args.path,
+ data().rootDir,
+ )
: toolData()?.args.path,
)
@@ -1620,7 +1622,7 @@ export default function Share(props: {
msg.role === "assistant" &&
part.type === "tool-invocation" &&
part.toolInvocation.toolName ===
- "todowrite" &&
+ "todowrite" &&
part
}
>
@@ -1686,7 +1688,7 @@ export default function Share(props: {
msg.role === "assistant" &&
part.type === "tool-invocation" &&
part.toolInvocation.toolName ===
- "webfetch" &&
+ "webfetch" &&
part
}
>