陈大猫 and Cursor
aebdcedda9
Fix terminal catch-up lag when window is backgrounded unfocused ( #1880 ) ( #1940 )
...
* Fix terminal backlog when window is unfocused in background.
Extend the background write fast path to occluded-but-visible windows (common on Windows Alt+Tab), skip wasteful repaints during that path, and flush any remaining coalescer/queue backlog when the app returns to foreground.
Co-authored-by: Cursor <cursoragent@cursor.com >
* Fix resume hook wiring and keep unfocused repaint in fast path.
The onWindowShown resume flush never fired because useTerminalBackend did not expose the bridge listener. Also restore scheduleTerminalRepaintWhenUnfocused on the background fast path: unfocused-but-visible windows have no rAF render loop, so skipping it froze visible output (#1761 regression).
Co-authored-by: Cursor <cursoragent@cursor.com >
---------
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 17:51:41 +08:00
..
2026-07-04 15:03:01 +08:00
2026-06-10 01:10:33 +08:00
2026-06-28 02:17:06 +08:00
2026-07-02 01:00:32 +08:00
2026-07-03 10:47:59 +08:00
2026-06-10 23:22:19 +08:00
2026-06-10 23:22:19 +08:00
2026-05-28 15:12:19 +08:00
2026-06-20 11:27:00 +08:00
2026-06-20 11:27:00 +08:00
2026-05-27 00:03:08 +08:00
2026-06-12 00:47:17 +08:00
2026-06-23 01:49:57 +08:00
2026-06-23 01:49:57 +08:00
2026-05-22 22:26:05 +08:00
2026-05-22 22:26:05 +08:00
2026-07-03 10:47:59 +08:00
2026-05-09 16:16:17 +08:00
2026-04-22 19:03:38 +08:00
2026-05-01 16:31:58 +08:00
2026-05-01 16:31:58 +08:00
2026-05-01 16:31:58 +08:00
2026-06-09 03:35:03 +08:00
2026-07-03 10:47:59 +08:00
2026-06-09 03:35:03 +08:00
2026-06-09 03:35:03 +08:00
2026-06-10 11:04:36 +08:00
2026-05-28 15:12:19 +08:00
2026-06-03 10:27:50 +08:00
2026-06-03 10:27:50 +08:00
2026-05-26 02:42:41 +08:00
2026-05-26 02:42:41 +08:00
2026-05-26 02:42:41 +08:00
2026-05-26 02:42:41 +08:00
2026-04-28 21:21:46 +08:00
2026-04-28 21:21:46 +08:00
2026-06-11 14:48:52 +08:00
2026-06-11 14:48:52 +08:00
2026-06-29 02:39:08 +08:00
2026-06-30 17:01:27 +08:00
2026-06-28 23:48:12 +08:00
2026-03-26 21:52:10 +08:00
2026-06-09 03:35:03 +08:00
2026-06-13 08:58:04 +08:00
2026-06-03 01:45:28 +08:00
2026-06-19 16:08:18 +08:00
2026-06-17 18:43:50 +08:00
2026-06-23 01:49:57 +08:00
2026-06-23 01:49:57 +08:00
2026-06-17 18:43:42 +08:00
2026-06-17 18:43:42 +08:00
2026-06-14 01:30:44 +08:00
2026-06-14 01:30:44 +08:00
2026-06-29 22:08:07 +08:00
2026-06-25 13:32:12 +08:00
2026-06-25 13:32:12 +08:00
2026-06-29 22:08:07 +08:00
2026-06-12 14:00:16 +08:00
2026-06-12 14:00:16 +08:00
2026-06-28 03:28:50 +08:00
2026-06-28 23:48:12 +08:00
2026-05-31 18:01:43 +08:00
2026-06-11 14:48:52 +08:00
2026-06-26 23:14:57 +08:00
2026-07-04 19:37:11 +08:00
2026-07-04 19:37:11 +08:00
2026-06-04 23:44:27 +08:00
2026-06-10 19:38:39 +08:00
2026-06-14 01:30:44 +08:00
2026-06-24 23:52:03 +08:00
2026-06-24 23:52:03 +08:00
2026-06-10 01:10:33 +08:00
2026-06-10 01:10:33 +08:00
2026-06-10 01:10:33 +08:00
2026-06-24 23:36:32 +08:00
2026-06-24 23:36:32 +08:00
2026-06-06 18:59:48 +08:00
2026-06-06 18:59:48 +08:00
2026-06-22 23:06:05 +08:00
2026-05-01 16:31:58 +08:00
2026-05-01 16:31:58 +08:00
2026-06-12 01:21:28 +08:00
2026-06-12 01:21:28 +08:00
2026-07-03 10:47:59 +08:00
2026-06-12 17:46:32 +08:00
2026-06-28 03:28:50 +08:00
2026-06-28 03:28:50 +08:00
2026-06-26 16:37:08 +08:00
2026-06-26 00:08:39 +08:00
2026-06-27 17:25:18 +08:00
2026-06-27 17:25:18 +08:00
2026-04-10 10:39:37 +08:00
2026-06-23 01:49:57 +08:00
2026-06-29 00:12:03 +08:00
2026-02-07 13:44:19 +08:00
2026-06-01 19:29:53 +08:00
2026-06-29 00:12:03 +08:00
2026-06-10 15:18:37 +08:00
2026-06-10 15:18:37 +08:00
2026-06-07 19:05:33 +08:00
2026-06-14 01:30:44 +08:00
2026-05-27 15:12:42 +08:00
2025-12-13 01:38:44 +08:00
2026-04-15 03:09:55 +08:00
2026-06-29 22:18:26 +08:00
2026-06-29 22:18:26 +08:00
2026-03-21 21:29:58 +08:00
2026-06-28 03:28:50 +08:00
2026-06-28 03:28:50 +08:00
2026-07-01 02:49:24 +08:00
2026-07-01 02:49:24 +08:00
2026-06-25 15:04:00 +08:00
2026-05-06 17:33:46 +08:00
2026-06-25 14:23:10 +08:00
2026-06-25 14:23:10 +08:00
2026-06-10 23:19:31 +08:00
2026-06-28 23:48:12 +08:00
2026-06-28 23:48:12 +08:00
2026-06-25 10:15:39 +08:00
2026-07-02 01:13:38 +08:00
2026-07-02 01:13:38 +08:00
2026-06-29 22:08:07 +08:00
2026-06-22 14:08:53 +08:00
2026-05-18 11:31:50 +08:00
2026-03-28 19:44:37 +08:00
2026-06-12 16:09:29 +08:00
2026-03-31 23:55:45 +08:00
2026-06-22 18:23:58 +08:00
2026-06-29 10:49:19 +08:00
2026-06-29 10:49:19 +08:00
2026-01-28 11:13:17 +08:00
2026-06-11 04:19:21 +08:00
2026-07-05 17:51:41 +08:00
2026-06-11 04:19:21 +08:00
2026-07-03 10:47:59 +08:00
2026-02-12 21:31:01 +08:00
2026-06-09 03:35:03 +08:00
2026-06-18 11:50:19 +08:00
2026-06-29 00:40:54 +08:00
2026-06-28 23:48:12 +08:00
2026-06-11 03:11:39 +08:00
2026-06-11 16:05:17 +08:00
2026-06-28 23:48:12 +08:00
2026-06-04 17:20:44 +08:00
2026-06-04 17:20:44 +08:00
2026-06-26 18:01:57 +08:00
2026-07-04 17:38:33 +08:00
2026-07-04 17:38:33 +08:00