Skip to content

Commit 9ccec92

Browse files
zerone0xclaude
andcommitted
fix(enterprise): add message navigation to share page desktop view
Add MessageNav component to allow users to navigate between messages on desktop viewports in the share page. Previously, only the first message was visible on desktop, with no way to access other messages in multi-turn conversations. Fixes anomalyco#10032 Co-Authored-By: Claude <[email protected]>
1 parent bb58241 commit 9ccec92

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { createStore } from "solid-js/store"
2020
import z from "zod"
2121
import NotFound from "../[...404]"
2222
import { Tabs } from "@opencode-ai/ui/tabs"
23+
import { MessageNav } from "@opencode-ai/ui/message-nav"
2324
import { preloadMultiFileDiff, PreloadMultiFileDiffResult } from "@pierre/diffs/ssr"
2425
import { Diff as SSRDiff } from "@opencode-ai/ui/diff-ssr"
2526
import { clientOnly } from "@solidjs/start"
@@ -362,6 +363,15 @@ export default function () {
362363
{title()}
363364
</div>
364365
<div class="flex items-start justify-start h-full min-h-0">
366+
<Show when={messages().length > 1}>
367+
<MessageNav
368+
class="sticky top-0 shrink-0 py-2 pl-4"
369+
messages={messages()}
370+
current={activeMessage()}
371+
size="compact"
372+
onMessageSelect={setActiveMessage}
373+
/>
374+
</Show>
365375
<SessionTurn
366376
sessionID={data().sessionID}
367377
messageID={store.messageId ?? firstUserMessage()!.id!}

0 commit comments

Comments
 (0)