Skip to content

Commit eeff62a

Browse files
committed
fix(share): page title should be session title
1 parent 3fc6c42 commit eeff62a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/enterprise/src/routes/share/[shareID].tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { preloadMultiFileDiff, PreloadMultiFileDiffResult } from "@pierre/diffs/
2525
import { Diff as SSRDiff } from "@opencode-ai/ui/diff-ssr"
2626
import { clientOnly } from "@solidjs/start"
2727
import { type IconName } from "@opencode-ai/ui/icons/provider"
28-
import { Meta } from "@solidjs/meta"
28+
import { Meta, Title } from "@solidjs/meta"
2929
import { Base64 } from "js-base64"
3030

3131
const ClientOnlyDiff = clientOnly(() => import("@opencode-ai/ui/diff").then((m) => ({ default: m.Diff })))
@@ -202,6 +202,9 @@ export default function () {
202202

203203
return (
204204
<>
205+
<Show when={info().title}>
206+
<Title>{info().title} | OpenCode</Title>
207+
</Show>
205208
<Meta name="description" content="opencode - The AI coding agent built for the terminal." />
206209
<Meta property="og:image" content={ogImage()} />
207210
<Meta name="twitter:image" content={ogImage()} />

0 commit comments

Comments
 (0)