Archived
The stream catch-up mode was represented by two fields that could drift: the private catchupStreamSessionId guard (which suppresses live transcript events while the in-flight message prefix is missing) and the public isReceivingPartialStream flag (which drives the badge). The socket reconnect path (refreshSelectedSession) set the flag from status without updating the guard, so a later idle status.update was skipped by the guard check and the badge never cleared. Route every mutation of the mode through a single setStreamCatchup helper so the guard and badge can't disagree, and clear the mode on any non-streaming status for the selected session.
6 lines
491 B
Markdown
6 lines
491 B
Markdown
---
|
|
"@jmfederico/pi-web": patch
|
|
---
|
|
|
|
Fix the "Catching up…" badge sometimes staying visible after a session goes idle. The stream catch-up mode was tracked by two fields that could drift — a private guard and the public badge flag — and the socket reconnect path updated one without the other, so the terminating idle status no longer cleared the badge. Both facets now route through a single source of truth, and any idle status for the selected session reliably dismisses the badge.
|