|
|
@@ -20,6 +20,7 @@ import { createStore } from "solid-js/store"
|
|
|
import z from "zod"
|
|
|
import NotFound from "../[...404]"
|
|
|
import { Tabs } from "@opencode-ai/ui/tabs"
|
|
|
+import { MessageNav } from "@opencode-ai/ui/message-nav"
|
|
|
import { preloadMultiFileDiff, PreloadMultiFileDiffResult } from "@pierre/diffs/ssr"
|
|
|
import { Diff as SSRDiff } from "@opencode-ai/ui/diff-ssr"
|
|
|
import { clientOnly } from "@solidjs/start"
|
|
|
@@ -362,6 +363,15 @@ export default function () {
|
|
|
{title()}
|
|
|
</div>
|
|
|
<div class="flex items-start justify-start h-full min-h-0">
|
|
|
+ <Show when={messages().length > 1}>
|
|
|
+ <MessageNav
|
|
|
+ class="sticky top-0 shrink-0 py-2 pl-4"
|
|
|
+ messages={messages()}
|
|
|
+ current={activeMessage()}
|
|
|
+ size="compact"
|
|
|
+ onMessageSelect={setActiveMessage}
|
|
|
+ />
|
|
|
+ </Show>
|
|
|
<SessionTurn
|
|
|
sessionID={data().sessionID}
|
|
|
messageID={store.messageId ?? firstUserMessage()!.id!}
|