Preface¶
When developing agents with DeepSeek Harness (DSH), the main window does not automatically fill the screen by default; achieving fullscreen or maximized states often requires manual clicking every time. Furthermore, when closing the window, DSH minimizes to the system tray instead of exiting, which conflicts with the expectation of “one-click exit.” The official main process currently does not expose IPC for maximize, minimize, always-on-top, or exit. Relying solely on the rendering layer cannot achieve true window-level fullscreen (covering the taskbar) or native confirmation dialogs.
The dsh-window-control introduced below (maintained by YunLiZeMeng, GitHub repository: YunLiZeMeng/dsh-window-control) is designed for desktop DSH. It centralizes window and exit behavior management within the settings. After installation, the plugin’s included host semi-automatically writes to the window bridge, requiring no additional scripts, Python, or manual configuration file editing.
What is this¶
dsh-window-control is a client-side plugin in the DSH community directory (Directory page: skillhub.cn/plugins/YunLiZeMeng/dsh-window-control). The current package version is 1.4.2, licensed under MIT.
It solves the following issues: automatically filling the screen upon startup,随时 maximizing/restoring/minimizing/pinning to the top, and triggering an exit with a native confirmation dialog via Esc, double-click Esc, or Ctrl+Q. In true fullscreen mode, Esc defaults to exiting fullscreen first rather than directly asking for exit confirmation.
The entry point is within DSH: Settings → Window & Quit.
Core Features¶
The following capabilities are derived from the plugin’s README and description. The main switch is enabled by default; turning it off renders the plugin completely inactive (no auto-fill, no shortcut exit, other controls hidden) and restores any window states it previously modified.
| Capability | Description |
|---|---|
| Fill on Startup | Three options: Maximize (Default) / True Fullscreen / Off; changes take effect immediately without restarting DSH |
| Fullscreen / Exit Fullscreen | Window-level fullscreen (covers taskbar), not web-layer fullscreen |
| Maximize / Restore | Standard maximize and restore functions |
| Minimize | Minimizes window to the taskbar |
| Always on Top | Keeps DSH window above other windows |
| Quit Harness | Always shows a native confirmation dialog before exiting |
| Quit Shortcut | Four options: Esc (Default) / Double-click Esc / Ctrl+Q / Off |
| Esc in Fullscreen | Enabled by default: In true fullscreen, Esc exits fullscreen first instead of triggering the exit confirmation directly |
The plugin describes itself as self-contained: the host semi-automatically opens DSH’s window bridge after installation. Since the DSH main process does not provide the aforementioned IPC, the implementation injects an equivalent replacement IPC channel into resources/app.asar upon first run (preserving a backup as app.asar.orig). This aligns with the practices of other DSH plugins that require host behavior. Windows user-level installations have been tested; installing under Program Files may require one elevated run on first installation. Modifying app.asar on macOS may affect code signing; the plugin will notify you, and you can use restore to roll back. Linux is supported, though path fallbacks are limited.
Installation and Activation¶
The official recommendation is to install via the In-App Market. Do not use CLI commands constructed from repository names (the desktop version does not have a dsh command by default, resulting in a 'dsh' is not recognized error).
Step 1 · Add Plugin. Open the in-app market, search for dsh-window-control, and install it.
If it cannot be found: Directory synchronization may take up to a day; after refreshing the market (or updating the market itself), fully quit DSH and reopen it. The entry is already in the community registry; it is most likely just a market cache issue.
Step 2 · Fully Quit DSH. Use the Tray Icon → Quit. Simply closing the window minimizes it to the tray, which does not count as quitting, and the bridge will not be installed.
Step 3 · Reopen DSH (First Start). This run writes the window bridge to app.asar. When opening Settings → Window & Quit, it may still show the bridge as inactive—this is expected, not a failure.
Step 4 · Fully Quit and Reopen Again (Second Start). After this, the warning disappears and buttons become available; generally, no further restarts are needed for this purpose.
Brief reason: The DSH main process loads code at startup, so the plugin can only patch DSH while it is already running; the first start writes the bridge, and the second start loads it. A full quit via Tray → Quit is required between these two starts.
Optional Verification (Windows; adjust dsh-primary-runtime and profile name desktop according to your actual local directories):
"%USERPROFILE%\.dsh\dsh-runtimes\dsh-primary-runtime\dependencies\node\bin\node.exe" "%USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-window-control\lib\bridge-cli.mjs" status
If the output contains Bridge Status : Installed v3 (includes Minimize / Always on Top), it indicates the bridge is installed. On macOS / Linux, you can run this in the plugin directory:
cd ~/.dsh/profiles/desktop/node_modules/dsh-window-control && node lib/bridge-cli.mjs status
Typical Usage¶
- After installation and completing the aforementioned two full quits and restarts, go to Settings → Window & Quit.
- Select Maximize, True Fullscreen, or Off under “Fill on Startup”; the option takes effect immediately.
- Use the on-screen buttons for Fullscreen, Maximize, Minimize, and Always on Top to switch as needed.
- Select Esc, Double-click Esc, Ctrl+Q, or Off under “Quit Shortcut”; a native confirmation dialog will appear before exiting.
- If using True Fullscreen and “Esc exits fullscreen first” is enabled, pressing Esc will exit fullscreen first.
For troubleshooting, you can use the same node.exe and bridge-cli.mjs paths in cmd, replacing the trailing subcommand with check, install, restore, uninstall, etc. (see the README “Manual commands” table for details). To only restore app.asar while keeping the plugin, use restore instead of uninstall.
Use Cases and Notes¶
Suitable for: Desktop users who want the DSH window to automatically maximize or true fullscreen every time it is opened, need pinning or minimizing, and prefer to use Esc / Ctrl+Q to exit after confirmation.
Uninstallation Order: You must restore the bridge before uninstalling the plugin. It is recommended to execute the following first (paths as above, subcommand uninstall):
"%USERPROFILE%\.dsh\dsh-runtimes\dsh-primary-runtime\dependencies\node\bin\node.exe" "%USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-window-control\lib\bridge-cli.mjs" uninstall
You should expect to see Restored to original app.asar and Bridge Status : Not Installed, then remove the plugin from the market. If without command line access, you can append autoInstall: false to %USERPROFILE%\.dsh\profiles\desktop\cordis.patch.yml, fully quit and reopen once to let the host semi-automatically restore it, and then uninstall the plugin.
Security and Permissions: The plugin runs with the current DSH process privileges and modifies app.asar in the installation directory. Before installation, please review the GitHub Source Code and the MIT license yourself to confirm acceptance of the host patching method and platform differences (especially regarding macOS signing and Windows elevated paths).
The DSH ecosystem emphasizes “Everything is a plugin”; community directories like skillhub.cn are independent sites and have no official affiliation with DeepSeek / High-Flyer. The installation steps in this article are based on the plugin’s README.
Conclusion¶
dsh-window-control consolidates “Startup Fill, Window Control, and Confirmed Exit” into Settings → Window & Quit, using a self-installing window bridge to supplement capabilities not exposed by the DSH main process; initial use requires market installation and two full quits and restarts.
- Directory Page: https://www.skillhub.cn/plugins/YunLiZeMeng/dsh-window-control
- GitHub: https://github.com/YunLiZeMeng/dsh-window-control