fix(app): stale show (#16236)

This commit is contained in:
Filip 2026-03-06 01:23:48 +01:00 committed by GitHub
parent 39691e5174
commit cf425d114e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
import { For, createEffect, createMemo, on, onCleanup, Show, startTransition, Index, type JSX } from "solid-js" import { For, createEffect, createMemo, on, onCleanup, Show, Index, type JSX } from "solid-js"
import { createStore, produce } from "solid-js/store" import { createStore, produce } from "solid-js/store"
import { useNavigate, useParams } from "@solidjs/router" import { useNavigate, useParams } from "@solidjs/router"
import { Button } from "@opencode-ai/ui/button" import { Button } from "@opencode-ai/ui/button"
@ -160,7 +160,7 @@ function createTimelineStaging(input: TimelineStageInput) {
} }
const currentTotal = input.messages().length const currentTotal = input.messages().length
count = Math.min(currentTotal, count + input.config.batch) count = Math.min(currentTotal, count + input.config.batch)
startTransition(() => setState("count", count)) setState("count", count)
if (count >= currentTotal) { if (count >= currentTotal) {
setState({ completedSession: sessionKey, activeSession: "" }) setState({ completedSession: sessionKey, activeSession: "" })
frame = undefined frame = undefined