Commit fffce79
authored
fix(sessions): keep streaming live when the window is backgrounded
Streamed agent events are committed to the conversation store via a short
setTimeout flush in the renderer. Chromium clamps and (when the window is
occluded/hidden) freezes renderer timers, so while the app is backgrounded that
flush never runs: streamed events pile up unflushed and only render in a burst
when the timer thaws on refocus. This is why a waiting/looping agent appears to
hang and its messages all appear at once after the user sends a follow-up.
Set backgroundThrottling: false on the main window so renderer timers keep
running at full speed while backgrounded, letting live streaming flow during
long-running agent runs.
Generated-By: PostHog Code
Task-Id: d38d3951-6357-4d57-809c-74d47581a1631 parent 6d6de93 commit fffce79
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
218 | 228 | | |
219 | 229 | | |
220 | 230 | | |
| |||
0 commit comments