DeepSeek Harness Plugin

sjrslh/dsh-ui-zoom

Stars ★ 0 Downloads (30d) 1,436 Category UI Enhancements Added 2026-10-20 npm dsh-ui-zoom

Ctrl+wheel page zoom (60–180%, remembered) for the whole DSH UI, plus a bottom-right Settings entry that opens the host settings panel, with Ctrl+0 to reset.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-ui-zoom

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:sjrslh/dsh-ui-zoom

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

A little blue whale living inside DeepSeek Harness: it scales the whole UI for you. Not just the text — sidebars, composer, popovers and icons grow together, and the popovers stay where they belong.

A client plugin for DeepSeek Harness (DSH). No host changes.

✨ Features

  • True page zoom, 60%–180% in 10% steps — layout, not font size.
  • Three gestures: Ctrl + wheel, Ctrl + =, Ctrl + -; Ctrl + 0 resets to 100%.
  • Popovers stay put: DSH measures its shell in JS (innerWidth / innerHeight / getBoundingClientRect / clientX), so the plugin divides those values by the zoom factor too — model picker, reasoning menu and account menu land where they should.
  • No page jump at the end of a list: while zoomed the document root scroller is locked (the previous inline styles are remembered and restored at 100%).
  • A Settings button in the bottom-right corner: calls the host's settings.open first, then the account menu, then a synthetic Ctrl + ,.
  • Level remembered in localStorage (dsh-ui-zoom:level).
  • Terminals are left alone: Ctrl + wheel over xterm is passed through.
  • Small and quiet: no network, no file access, one localStorage key.

🎛️ How it differs

Approach Page zoom Popovers stay in place No page jump Settings button
Font-size only ✗ — — —
Plain CSS zoom ✓ ✗ popovers leave the viewport ✗ maybe
Region zoom partial ✓ — depends
dsh-ui-zoom ✓ ✓ metric shim ✓ root scroll lock ✓

📦 Install

Option 1 — one command (recommended)

dsh plugin --profile desktop add github:sjrslh/dsh-ui-zoom

Use --profile web for the web profile. Press Ctrl + R or restart DSH afterwards.

Option 2 — from a release (offline / pinned version)

Download dsh-ui-zoom-0.4.4.tgz from Releases, then:

dsh plugin --profile desktop add /path/to/dsh-ui-zoom-0.4.4.tgz

Option 3 — clone and link (for hacking on it)

git clone https://github.com/sjrslh/dsh-ui-zoom.git
dsh plugin --profile desktop add ./dsh-ui-zoom

Edit lib/client.js, press Ctrl + R, done — there is no build step.

🚀 Usage

Action Result
Ctrl + wheel up / down zoom in / out, 10% per step
Ctrl + = (or +) zoom in 10%
Ctrl + - zoom out 10%
Ctrl + 0 back to 100%
bottom-right Settings open the DSH settings panel

A percentage pill appears for 900 ms while zooming. The range is clamped to 60%–180%.

🧱 Layout

dsh-ui-zoom/
├─ lib/
│  ├─ index.js            # host entry (empty, keeps the package a valid Cordis plugin)
│  └─ client.js           # zoom, metric shim, scroll lock, settings button
├─ scripts/
│  ├─ smoke.mjs           # loads the bundle, renders the overlay once
│  └─ zoom.test.mjs       # metric assertions at 150% and the full restore
├─ cordis.patch.yml
├─ package.json
├─ CHANGELOG.md
├─ README.md              # Chinese
└─ README.en.md           # this file

❓ FAQ

Why not just bump the font size? Buttons, icons and spacing would stay the same and the UI would get cramped; this scales the whole layout.

Do popovers drift after zooming? No. Native browser zoom shrinks the layout viewport; CSS zoom only scales paint, so the plugin divides the JS-visible metrics by the zoom factor to keep both in the same coordinate space.

Why does the page no longer slide at the end of a list? zoom enlarges the root box, so the document gains a scrollable strip; the plugin locks the root scroller while zoomed and restores the previous styles at 100%.

Performance? One style write per zoom step and one localStorage write. No polling, no observers.

DSH versions? engines.dsh >= 0.1.0-rc.6, dshTarget 0.2.0-rc.2. Older builds have no shell.overlay slot.

📝 Changelog

See CHANGELOG.md.

📄 License

MIT.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.