fix(app): show retry status only on active turn (#11543)

This commit is contained in:
Filip
2026-02-01 13:42:33 +01:00
committed by GitHub
parent d1d7447493
commit 3e67104257

View File

@@ -398,6 +398,8 @@ export function SessionTurn(
const status = createMemo(() => data.store.session_status[props.sessionID] ?? idle) const status = createMemo(() => data.store.session_status[props.sessionID] ?? idle)
const working = createMemo(() => status().type !== "idle" && isLastUserMessage()) const working = createMemo(() => status().type !== "idle" && isLastUserMessage())
const retry = createMemo(() => { const retry = createMemo(() => {
// session_status is session-scoped; only show retry on the active (last) turn
if (!isLastUserMessage()) return
const s = status() const s = status()
if (s.type !== "retry") return if (s.type !== "retry") return
return s return s