You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tui): preserve streamed text when settling orphaned parts #691
A surviving TUI loses streamed text when the prompt loop settles an orphan: deltas are published but not projected, so the terminal recovery snapshot may contain an empty or partial durable value. Since #686 treats the first terminal text snapshot as an authoritative plugin rewrite, it replaces the visible text. Hydration separately keeps nonempty local text against any empty snapshot, including a legitimate plugin deletion, and can miss the terminal time.
Steps to reproduce
Persist an unfinished assistant text part and publish text deltas to a live consumer.
Run the prompt loop so its orphan settlement reads the durable row and publishes it with an end time.
Observe the streamed text disappear. Hydrating an empty terminal plugin rewrite over streamed text instead incorrectly preserves it.
Recovery needs distinguishable provenance in both live updates and hydrated rows; plugin prefix/empty rewrites and terminal ordering must remain intact. Recovery cannot reconstruct deltas that no consumer retained.
Activity