дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-24 18:34:38 +02:00
A kept-alive session tab (up to 5, `KEPT_TABS`) painted its whole conversation and never gave any of it back: `Stream` opens at the last `ENTRY_BATCH` (40) entries, then the "following the end" effect (`Stream.tsx`, the `useEffect` on `[start]`) keeps adding batches until the full history is DOM, hidden or not. Five long tabs therefore held every turn as DOM nodes (WebKit keeps layout/style/render-tree memory for all of it). Now a tab that was left at the end of its conversation and stays hidden for 30 s drops back to its recent tail, and a hidden tab no longer paints more batches. When it is shown again it is at the end as before and re-paints the earlier entries in the background exactly as when it first opened. Independent of #5462 (hidden tabs stop rendering), #5467 (per-chunk re-render) and the Rust PRs. Co-authored-by: Mr0Bread <[email protected]>