Introduction¶
When accessing the DeepSeek Harness (dsh) web profile via a browser, the interface usually retains the browser or system default title bar area: either occupying an extra bar of chrome or featuring a title bar style that is disconnected from the sidebar and session header. If dsh web is installed as a PWA, Window Controls Overlay (WCO) allows system window buttons to overlay the top of the webpage. However, this requires modifying the manifest, reserving space for the control strip, and specifying draggable areas—changes that often necessitate modifications to the frontend and routing.
Below is an introduction to the community plugin dsh-pwa-ui (npm package name @liuzw/dsh-pwa-ui, maintained by liuzwZYW). It enables WCO within installed Web applications without drawing an additional fake title bar, allowing the application’s own logo row and session header to assume the responsibilities of the window title bar.
What is this¶
dsh-pwa-ui is a plugin for the DSH web profile, built upon the Window Controls Overlay API. On the host side, it intercepts /manifest.webmanifest and places display_override: ["window-controls-overlay"] at the forefront of the returned manifest. On the browser side, it injects styles and DOM markers when the overlay is visible, reusing existing hooks from the shell like data-window-drag to ensure dragging and yielding behaviors align with the desktop version’s logic.
Native desktop/Electron window chrome carrying data-platform="darwin" or data-windows-titlebar is unaffected by this plugin.
Core Features¶
Manifest and Routing (Host: index.js)¶
The plugin intercepts the exact route /manifest.webmanifest. When @deepseek-ai/dsh-web-frontend/dist/manifest.webmanifest is readable, aside from prioritizing window-controls-overlay in display_override, fields such as name, short_name, start_url, scope, display, and icons are passed through as-is; it only falls back to a built-in copy if the file cannot be read. display: "fullscreen" remains as a fallback, and behavior on platforms not supporting the overlay remains unchanged.
Browser-side Styling (Client: client.js)¶
When WCO is visible, it sets data-dsh-wco on the <html> element and injects a stylesheet; it reclaims these upon unmount. In a standard browser tab, where navigator.windowControlsOverlay.visible is false and env(titlebar-area-height) is 0px, no overlay is drawn, no space is reserved, and the layout remains identical to when the plugin is not installed.
Title Bar as Application Interface¶
The plugin does not create separate chrome but instead:
- Sets
html[data-dsh-wco] [data-window-drag]toapp-region: drag, making the sidebar brand row and session header capable of dragging the window. - Maintains control clickability via the existing
no-draglist (e.g.,button,a,[role=tab]) anddata-window-drag-recall. - Measures the strip occupied by system window buttons (Windows on the right, macOS on the left) using CSS variables
--dsh-wco-controls-start/--dsh-wco-controls-end, allowing application controls to yield space; it also publishes--dsh-frame-leading-clearance,--dsh-frame-overlay-top, etc., for frame title rows and floating layers to avoid collision.
The package consists of zero-dependency native ES modules with no build step. peerDependencies require @deepseek-ai/dsh version >=0.2.0-rc.2 <0.3.0-0 and Node >=22. The current npm version is 1.0.2 with an MIT license.
Installation and Activation¶
Execute the following in an environment where the DSH web profile is already configured:
dsh plugin --profile web add @liuzw/dsh-pwa-ui
A restart of dsh web is required after installation (the manifest route is intercepted at startup). Open the interface in Edge or Chrome and install the application locally via the address bar. Once opened from the installed application window, the logo row and session header will serve as the title bar area.
The plugin runs with the permissions of the current dsh process. It is recommended to review the source code at the GitHub repository before installation to ensure the MIT license meets your compliance requirements.
Typical Usage and Preview¶
Final Effect: After completing the installation and PWA installation described above, simply launch from the installed application entry in Edge or Chrome on Windows/macOS that support WCO.
Viewing Layout without installing PWA: Microsoft Edge DevTools → Application → Window Controls Overlay can simulate the overlay. Even if the navigator.windowControlsOverlay API is not visible on the page, the plugin will treat the env() geometry simulated by DevTools as an enabled overlay, facilitating style debugging.
Use Cases and Notes¶
Who it is for: Developers who use dsh web as a desktop application under the web profile long-term and install PWAs using Edge/Chrome; those who wish to unify the title bar area with DSH’s own UI (brand row, session header) rather than using the system default title bar.
Environment Requirements:
- Only for the DSH web profile; overlay-related layouts will not be enabled in tabs that are not installed PWAs.
- A browser supporting Window Controls Overlay, specifically within an installed application window.
Known Couplings and Limitations (from the upstream README):
- The title bar chrome background may briefly be inconsistent with the page during a refresh; the plugin has written a
::window-controls-overlay { background: transparent }rule which will take effect once the proposal is implemented in browsers. Until then, it is primarily influenced by the manifest’stheme_color. - The implementation relies on
data-window-drag, right sidebar property names, and certain CSS-module dimensions from@deepseek-ai/dsh-web-frontend; the plugin may require synchronous updates if the frontend undergoes significant changes. - The yielding logic for macOS has been implemented, but the maintainer notes it has not yet been verified on a real macOS window.
The DeepSeek Harness ecosystem emphasizes “Everything is a plugin.” The SkillHub directory page is a community collection and has no official affiliation with DeepSeek or High-Flyer.
Links¶
- Directory Page: https://www.skillhub.cn/plugins/liuzwZYW/dsh-pwa-ui
- Source Code and Documentation: https://github.com/liuzwZYW/dsh-pwa-ui
If your daily entry point is an installed dsh web PWA, dsh-pwa-ui uses a single official installation command alongside manifest and client patches to bring the window title bar into the application’s own interface, reusing existing shell drag markers to avoid creating a separate layer of chrome specifically for WCO.