diff options
| author | Adam <[email protected]> | 2025-12-16 14:09:33 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-16 15:10:43 -0600 |
| commit | 96e4dcb521ed6c1d42ce31e1a603abd0016b39a7 (patch) | |
| tree | e151830197eee9d5a4bd55b563ab0cd3c81341b3 | |
| parent | 7e682a95c4c77ba187b07a90d8ed2eac5238d06b (diff) | |
| download | opencode-96e4dcb521ed6c1d42ce31e1a603abd0016b39a7.tar.gz opencode-96e4dcb521ed6c1d42ce31e1a603abd0016b39a7.zip | |
fix: working logic
| -rw-r--r-- | packages/ui/src/components/session-turn.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/ui/src/components/session-turn.tsx b/packages/ui/src/components/session-turn.tsx index ade9a04ab..213d72160 100644 --- a/packages/ui/src/components/session-turn.tsx +++ b/packages/ui/src/components/session-turn.tsx @@ -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}> |
