Commit dc76e7b
committed
🤖 Fix 8s freeze: Defer auto-resume check to not block UI
PROBLEM: resumeStream IPC takes 8 seconds when resuming interrupted
streams on first launch. Even though it's async, calling it immediately
in useEffect blocks the UI from becoming interactive.
Timeline from logs:
- 1347ms: attemptResume started for cmux-stable-ids
- 9408ms: resumeStream IPC completed (8061ms blocked)
SOLUTION: Defer initial resume check with setTimeout(0), same pattern
as GitStatusStore fix.
IMPACT:
- UI becomes interactive immediately on first launch
- Auto-resume still works, just starts after React finishes mounting
- Subsequent reloads already fast (no interrupted streams to resume)1 parent b60b7ad commit dc76e7b
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
| |||
0 commit comments