fix(tui): remount session view on session switch (#30129)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot]
2026-05-31 18:30:29 +00:00
committed by GitHub
parent 8f2afba7a5
commit abaabdcb73
2 changed files with 16 additions and 5 deletions

View File

@@ -1082,7 +1082,9 @@ function App(props: { onSnapshot?: () => Promise<string[]> }) {
<Home />
</Match>
<Match when={route.data.type === "session"}>
<Session />
<Show when={route.data.type === "session" ? route.data.sessionID : undefined} keyed>
{(_) => <Session />}
</Show>
</Match>
</Switch>
{plugin()}