Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export function Session() {
})
if (child) scroll.scrollBy(child.y - scroll.y - 1)
}}
sessionID={route.sessionID}
sessionID={session()?.parentID ?? route.sessionID}
setPrompt={(promptInfo) => prompt.set(promptInfo)}
/>
))
Expand All @@ -444,7 +444,7 @@ export function Session() {
})
if (child) scroll.scrollBy(child.y - scroll.y - 1)
}}
sessionID={route.sessionID}
sessionID={session()?.parentID ?? route.sessionID}
/>
))
},
Expand Down Expand Up @@ -1144,7 +1144,7 @@ export function Session() {
dialog.replace(() => (
<DialogMessage
messageID={message.id}
sessionID={route.sessionID}
sessionID={session()?.parentID ?? route.sessionID}
setPrompt={(promptInfo) => prompt.set(promptInfo)}
/>
))
Expand Down Expand Up @@ -1186,7 +1186,7 @@ export function Session() {
onSubmit={() => {
toBottom()
}}
sessionID={route.sessionID}
sessionID={session()?.parentID ?? route.sessionID}
/>
</box>
</Show>
Expand All @@ -1195,7 +1195,7 @@ export function Session() {
<Show when={sidebarVisible()}>
<Switch>
<Match when={wide()}>
<Sidebar sessionID={route.sessionID} />
<Sidebar sessionID={session()?.parentID ?? route.sessionID} />
</Match>
<Match when={!wide()}>
<box
Expand All @@ -1207,7 +1207,7 @@ export function Session() {
alignItems="flex-end"
backgroundColor={RGBA.fromInts(0, 0, 0, 70)}
>
<Sidebar sessionID={route.sessionID} />
<Sidebar sessionID={session()?.parentID ?? route.sessionID} />
</box>
</Match>
</Switch>
Expand Down
Loading