fix: working logic

pull/5655/head
Adam 2025-12-16 14:09:33 -06:00
parent 7e682a95c4
commit 96e4dcb521
No known key found for this signature in database
GPG Key ID: 9CB48779AF150E75
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ export function SessionTurn(
type: "idle",
},
)
const working = createMemo(() => status()?.type !== "idle")
const working = createMemo(() => status()?.type !== "idle" && message()?.id === userMessages().at(-1)?.id)
const retry = createMemo(() => {
const s = status()
if (s.type !== "retry") return
@ -306,7 +306,7 @@ export function SessionTurn(
<div data-slot="session-turn-message-header">
<div data-slot="session-turn-message-title">
<Switch>
<Match when={working() && message().id === userMessages().at(-1)?.id}>
<Match when={working()}>
<Typewriter as="h1" text={message().summary?.title} data-slot="session-turn-typewriter" />
</Match>
<Match when={true}>