Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
feat(renderer): enable smooth streaming by default
vastsa27fad580c6e1
diff --git a/apps/desktop/src/features/chat/transcript/AssistantTurn.tsx b/apps/desktop/src/features/chat/transcript/AssistantTurn.tsxindex 39193f0d9..bf1ed0d40 100644--- a/apps/desktop/src/features/chat/transcript/AssistantTurn.tsx+++ b/apps/desktop/src/features/chat/transcript/AssistantTurn.tsx@@ -231,7 +231,7 @@ const SmoothMessageBubble = memo(function SmoothMessageBubble({streaming: boolean;}) {const smoothStreaming = useAppStore(- (s) => s.settings?.smoothStreaming === true,+ (s) => s.settings?.smoothStreaming !== false,);const prefersReducedMotion =typeof window !== "undefined" &&diff --git a/apps/desktop/src/features/settings/SettingsPage.tsx b/apps/desktop/src/features/settings/SettingsPage.tsxindex fdb1af4f7..e186d87d8 100644--- a/apps/desktop/src/features/settings/SettingsPage.tsx+++ b/apps/desktop/src/features/settings/SettingsPage.tsx@@ -517,14 +517,14 @@ export function SettingsPage() {type="button"className={cx("settings-toggle",- settings.smoothStreaming === true && "on",+ settings.smoothStreaming !== false && "on",)}role="switch"- aria-checked={settings.smoothStreaming === true}+ aria-checked={settings.smoothStreaming !== false}aria-label={t("settings.smoothStreaming")}onClick={() =>void saveSettings({- smoothStreaming: settings.smoothStreaming !== true,+ smoothStreaming: !(settings.smoothStreaming !== false),})}>diff --git a/packages/shared/src/types/settings.ts b/packages/shared/src/types/settings.tsindex b4c49bd15..73a46472e 100644--- a/packages/shared/src/types/settings.ts+++ b/packages/shared/src/types/settings.ts@@ -147,7 +147,7 @@ export type AppSettings = {* Opt-in smooth streaming display (D152 amendment). When enabled, incoming* stream chunks are released character-by-character through a* requestAnimationFrame loop instead of appearing as whole blocks.- * Absent and false use direct rendering (D152 default). Automatically+ * Absent and true enable smooth rendering; false disables it. Automatically* disabled when the system prefers reduced motion.*/smoothStreaming?: boolean;