Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

Merge branch 'main' into fix/standalone-browser-no-host-573

Mao Mr91c7a2787720
diff --cc packages/dsh-tauri/src/client/apply.ts
index 99b6e27a,25dad4a5..c3c7c8cf
--- a/packages/dsh-tauri/src/client/apply.ts
+++ b/packages/dsh-tauri/src/client/apply.ts
@@@ -21,13 -22,10 +22,14 @@@ const SIDEBAR_TOGGLE_EFFECT = 'dsh-taur
const NAVIGATION_EFFECT = 'dsh-tauri: navigation (new session, add workspace)'
const ZOOM_SHORTCUT_EFFECT = 'dsh-tauri: zoom shortcuts (ctrl/cmd +/-/0)'
const SIDEBAR_TWEAKS_EFFECT = 'dsh-tauri: sidebar tweaks (hide collapse toggle, center brand)'
-
+ const STYLE_EFFECT = 'dsh-tauri: style (sidebar background)'
/** 插件体:注册侧边栏桥、导航命令、缩放快捷键与侧边栏 UI 微调。 */
export function apply(ctx: ClientContext): void {
+ // issue #573:独立浏览器没有桌面宿主,保留原生侧栏控件与缩放快捷键。
+ if (typeof window === 'undefined' || typeof document === 'undefined' || window.parent === window)
+ return
+
+ ctx.effect(registerStyle, STYLE_EFFECT)
ctx.effect(sidebarFeature, SIDEBAR_TOGGLE_EFFECT)
ctx.effect(navigationFeature, NAVIGATION_EFFECT)
ctx.effect(zoomShortcutFeature, ZOOM_SHORTCUT_EFFECT)