From 4933d9db8af78f98ebdfdcf48f0d42532c9c960e Mon Sep 17 00:00:00 2001 From: GeekMr <140129782+WilliamWang1721@users.noreply.github.com> Date: Sat, 26 Sep 2026 17:34:57 +0800 Subject: [PATCH] docs(terminal): align startup seeding comment with silent subscriptions #302 made DECSET 2031 subscriptions silent, so the pane-startup seeding comment no longer describes the failure it guards against: without the seed, the first real dark/light flip is swallowed by same-value change detection and subscribers miss the first notification; the removed subscribe-time report no longer exists to hand out a wrong initial value. --- nebula_app/src/gpui_shell/terminal/view/startup.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nebula_app/src/gpui_shell/terminal/view/startup.rs b/nebula_app/src/gpui_shell/terminal/view/startup.rs index 58167db..1a434bb 100644 --- a/nebula_app/src/gpui_shell/terminal/view/startup.rs +++ b/nebula_app/src/gpui_shell/terminal/view/startup.rs @@ -346,8 +346,8 @@ impl TerminalView { bell_flash_epoch: 0, }; // 出生即把亮暗种进 Term:`Term::color_scheme_dark` 的默认值是「暗」, - // 浅色主题下启动的 pane 如果不种,第一个 DECSET 2031 的订阅方会拿到 - // 一个错的初值,而且在用户下一次改主题之前都纠不回来。 + // 浅色主题下启动的 pane 如果不种,第一次真实的亮暗翻转会被 + // `set_color_scheme` 的同值去重吞掉,订阅方漏收第一条通知。 if let Some(session) = &view.session { session.term.lock().set_color_scheme(view.palette.is_dark()); }