DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
fix(dsh-tauri): skip desktop effects in standalone browsers
Wanming081c5d7f1e02b8
diff --git a/packages/dsh-tauri/src/client/apply.ts b/packages/dsh-tauri/src/client/apply.tsindex a941c027..99b6e27a 100644--- a/packages/dsh-tauri/src/client/apply.ts+++ b/packages/dsh-tauri/src/client/apply.ts@@ -24,6 +24,10 @@ const SIDEBAR_TWEAKS_EFFECT = 'dsh-tauri: sidebar tweaks (hide collapse toggle,/** 插件体:注册侧边栏桥、导航命令、缩放快捷键与侧边栏 UI 微调。 */export function apply(ctx: ClientContext): void {+ // issue #573:独立浏览器没有桌面宿主,保留原生侧栏控件与缩放快捷键。+ if (typeof window === 'undefined' || typeof document === 'undefined' || window.parent === window)+ return+ctx.effect(sidebarFeature, SIDEBAR_TOGGLE_EFFECT)ctx.effect(navigationFeature, NAVIGATION_EFFECT)ctx.effect(zoomShortcutFeature, ZOOM_SHORTCUT_EFFECT)