dsh-window-fit
Manifest validSizes and centres the DSH desktop window to a share of the screen on launch, adjustable from Settings > General. Windows only. Its HTTP routes have no DSH access check, so a web page open in your brow
dsh-window-fit
把 DeepSeek Harness 桌面窗口固定在屏幕的一块比例区域里,并在 设置 → 通用 里直接改大小。
DSH 桌面版的默认窗口是 1280×820,在高分屏上要么太小要么正好占满;这个插件在每次启动时把主窗口缩放到「屏幕宽 × 宽度比例 / 屏幕高 × 高度比例」并居中,比例随时可以在设置里改。
仅 Windows 有效(通过 Win32
SetWindowPos调整窗口)。
安装
dsh plugin add dsh-window-fit
或在 插件 → 添加插件 里填包名 dsh-window-fit,也可以直接安装本地目录。
安装后在 设置 → 通用 会多出一行「窗口大小」:
- 宽 / 高:窗口占屏幕的百分比(默认 78.75% × 81.44%,在 2560×1600 屏上是 2016×1303);
- 保存并应用:写入配置并立即调整窗口,以后每次启动都按这个比例;
- 立即应用:只按输入框里的数值临时调一次,不写入配置(下次启动仍用已保存的比例)。
默认比例的含义
| 屏幕 | 默认窗口 |
|---|---|
| 2560×1600(150% 缩放) | 2016×1303 |
| 1920×1080 | 1512×880 |
| 3840×2160 | 3024×1759 |
想改就改百分比,比如都填 70 就是屏幕的 70%。
已知限制
- 只在 Windows 上工作;其他平台安装后不做任何事。
- DSH 自身有最小窗口尺寸,比例设得太小时会被程序抬高。
- 固定比例,不记忆你手动拖动后的尺寸;要换回默认行为,禁用或卸载插件即可。
- 需要系统允许运行脚本:插件通过
wscript.exe以隐藏窗口启动 PowerShell 完成一次窗口调整,不修改任何系统策略。 - 调整时如果窗口处于最小化状态,会被短暂还原再最小化;正常启动时窗口是可见的,看不到这一步。
排查
窗口没有按比例变化时,看 %TEMP%\dsh-window-fit.log:里面记录了插件激活、目标尺寸和实际结果。
许可证
MIT
Comments
Loading…
Similar plugins
Opens the dsh web GUI in a dedicated Edge/Chrome app-mode window on its own browser profile and gracefully stops the server when that window is closed.
★ 0
dsh plugin --profile web add dsh-web-window-companionby hanwuji1
One-click launcher for the Web UI: a double-click Start-DSH-Web.cmd on the Windows desktop that boots dsh web and auto-opens the browser (polling until ready), plus a web_launcher model tool (install
★ 0
MIT
JavaScript
Aug 15, 2026
dsh plugin --profile web add dsh-web-launcherby fuyue521
Windows desktop shortcut for dsh web: launches the server, auto-opens the browser when ready, and stops the service when the Harness window closes.
★ 2
↓ 144/wk
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-desktop-shortcutby 1700563146
Whole-interface zoom for the DSH Web UI from 70% to 160%, driven by Ctrl+wheel, DSH's shortcut center or an inline pill, with content-width compensation so zooming out fits more text instead of narrow
★ 0
MIT
JavaScript
Oct 23, 2026
dsh plugin --profile web add dsh-plugin-ui-zoomby H1Kariiiiiii
One-click desktop launcher for DSH Web: creates a Windows .lnk with a WPF-style startup popup (progress + timeout), then opens the authenticated browser; plus a floating shutdown button that exits dsh
★ 3
Apache-2.0
JavaScript
Sep 6, 2026
dsh plugin --profile web add dsh-desktop-launcher2A dsh web plugin that wraps the running Harness in a native Windows desktop window: it bundles a Wails v3 desktop client (so installing the plugin is enough), probes the web port and writes the ~/.dsh
★ 1
↓ 430/wk
NOASSERTION
JavaScript
dsh plugin --profile web add @zerorigin-studio/dsh-desktop-shell