Gives an installed dsh web app a native-looking window caption through Window Controls Overlay - the manifest route is served with display_override, the app's own sidebar brand row and session header become the drag region, and the app's own trailing controls are inset clear of the browser's caption chrome.
Install
# from npm (prebuilt)
dsh plugin --profile web add @liuzw/dsh-pwa-ui
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:liuzwZYW/dsh-pwa-ui
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
中文 | English
DeepSeek Harness (dsh) web plugin that gives the installed web app a
native-looking window caption, using the
Window Controls Overlay
API.
No extra title bar is drawn. The manifest opts into the overlay, and the app's own chrome — the sidebar's logo row and the session header — becomes the window's title bar: that strip is where the window is dragged from, and the app's own controls are pushed clear of the system window buttons.

Install
dsh plugin --profile web add @liuzw/dsh-pwa-ui
Then restart dsh web (the manifest route is claimed at startup) and install
the UI as an app in Edge or Chrome: address bar → Install. The app window
opens with its own header as the caption.
To check it without installing: Microsoft Edge DevTools →
Application → Window Controls Overlay simulates the overlay; the plugin
treats the simulated env() geometry as an active overlay even while the
navigator.windowControlsOverlay API stays hidden.
What it does
| Half | File | Responsibility |
|---|---|---|
| Host | index.js |
Claims the exact /manifest.webmanifest route and answers with the shipped frontend manifest plus display_override: ["window-controls-overlay"] as its first candidate. Every other field (name, short_name, start_url, scope, display, icons) is passed through from @deepseek-ai/dsh-web-frontend/dist/manifest.webmanifest; only an unreadable shipped manifest falls back to an embedded copy. display: "fullscreen" stays the fallback mode, so platforms without overlay support keep the stock behavior. |
| Client | client.js |
Publishes data-dsh-wco on <html> while the overlay is visible, injects one stylesheet, and removes both on unload. |
The caption is the app's own chrome
The shell already declares which rows are window drag handles for desktop
windows: the sidebar's brand row and the conversation header mark themselves
data-window-drag, and ui-web base.css turns that single mark into the macOS
drag rule. The client half reuses that contract instead of adding chrome:
html[data-dsh-wco] [data-window-drag]becomes theapp-region: draghandle, so the window is dragged from the logo row and the session header exactly as the desktop builds drag from their chrome.- The app's own controls stay clickable through the mirrored
no-draglist (button,a,[role=tab], …) plus the app'sdata-window-drag-recallopt-out marker. - The sidebar root's own
6pxtop /--dsh-sidebar-inline-paddingbox is cancelled on the brand row (negative margins, the same insets re-added as row padding), so the brand row's border box — and therefore its drag region — reaches the window's top-left corner without moving a pixel of content. --dsh-wco-controls-start/--dsh-wco-controls-endmeasure the strip the browser's caption chrome occupies (empty on the trailing side on Windows, on the leading side on macOS, and on Edge it covers every browser button, not just the window buttons). Only the surface that actually owns the window's trailing edge takes the inset, because only that surface can reach those buttons: an open right panel insets its own docking-tab strip, and with no panel open the session header takes it instead. The sidebar's brand row and the docking kit's own leading inset takecontrols-start, so the macOS traffic lights never overlap app controls.--dsh-frame-leading-clearanceand--dsh-frame-overlay-topare published so the frame's title row and its dialog/popover surfaces stay clear of the controls.--dsh-frame-chrome-topis deliberately left alone: the caption is app content now, so modal masks cover it.
Requirements
- A DSH web profile (
dsh web); the desktop/Electron windows use their owndata-platform="darwin"/data-windows-titlebarchrome and are untouched. - A browser with Window Controls Overlay support for installed apps: Edge or
Chrome on Windows/macOS. The app must actually be installed — in a normal
browser tab
navigator.windowControlsOverlay.visibleis false andenv(titlebar-area-height)resolves to0px, so nothing is drawn, no padding is reserved and the layout is untouched.
Notes and caveats
- No dependencies, no build step: the package ships plain ES modules and is installed from npm or straight from this repository.
- The caption backdrop. On a reload the browser can paint its own backdrop
behind the caption buttons before the app repaints the same strip, so the
top-right corner briefly disagrees with the rest. That is exactly what the
::window-controls-overlayproposal is for, and the plugin already ships::window-controls-overlay { background: transparent }— as two separate rules, so an unsupported form cannot invalidate the other. No browser implements the proposal yet: today they drop these rules as unknown selectors and the stylesheet starts working the day one ships. Until then the only knob that reaches that backdrop is the manifest'stheme_color. - The plugin targets the shipped frontend's own hooks, so a frontend change can
need a follow-up: the
data-window-dragmarkers, the right panel'sdata-sidebar-right-panel/data-sidebar-right-open/data-dockkit-floatattributes and--dsh-dockkit-strip-inline-start, plus a few restated values (the conversation header's28pxtrailing padding, the docking tab strip's6px, the brand row's4pxinline-start padding and its60px/36pxheights, and the sidebar root's6pxbox) and the_logoRow/_root/_collapsed/_headerBlank/_headerSessionless/_tabStripCSS-module suffixes. - On the sessionless and blank pages the shell collapses the header row to no height, which would leave the caption band above the main column with no drag surface; that collapsed state is given the caption’s height instead.
- The reserved strip is measured from the browser, not assumed: on Edge the caption chrome can be several hundred pixels wide, and that is the width the app's trailing controls are inset by.
- macOS is implemented (leading insets through the same variables) but was not verified on a real macOS window.
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10696
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10696
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8484
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7509
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5395
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1082
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.