Introduction¶
DSH supports extending the web interface via plugins. dsh-width is a plugin for DeepSeek Harness web that solves the interface width adjustment problem: it adds a “Display” page in “Settings” with two sliders to adjust the width percentage of the input box and content display area. Changes take effect immediately and are persisted.
What is this¶
dsh-width is a DSH web plugin: it adds a “Display” page in “Settings” with two sliders to adjust the width percentage of the input box and content display area respectively.
Target platform:
dsh --profile web
GitHub repository:
https://github.com/Hanice404/dsh-width
License:
MIT
Core Features¶
Verified settings items and behaviors are as follows:
- Adds two sliders in “Settings → Display”.
- Adjusts the width percentage of the content display area and input box respectively.
- Slider range:
30% – 100%
Step is:
5%
Default value is:
100%
- Each slider has a “Reset” button for one-click restoration.
- Changes take effect immediately, no refresh needed.
- Settings values are persisted to:
~/.dsh/settings.yaml
The corresponding configuration section is:
dsh-width
- The menu row of the new session hero page aligns with the left edge of the input box; the session task list width syncs with the input box width.
Installation and Enablement¶
First install the plugin, then restart dsh web.
Install from GitHub:
dsh plugin --profile web add https://github.com/Hanice404/dsh-width/archive/refs/heads/main.tar.gz
Install from local directory:
dsh plugin --profile web add link:/path/to/dsh-width
You can also use pnpm in the profile directory:
cd ~/.dsh/profiles/web && pnpm add /path/to/dsh-width
After installation, restart DSH web. Stop the current dsh web first with Ctrl+C, then run again:
dsh web
Legacy DSH Settings Namespace¶
dsh-width requires DSH 0.1.0-rc.6 and later.
0.1.0-rc.7and later: The settings namespace is auto-exposed; just restartdsh webafter installation.0.1.0-rc.6and earlier: If the sliders in “Settings → Display” are disabled, you need to run the command to expose the settings namespace once:
npm run expose
This command is equivalent to:
node scripts/patch-apiproxy.mjs
Restart dsh web after execution:
dsh web
Typical Usage¶
- Open “Settings → Display” in DSH web.
- Drag “Content Display Area Width” to adjust the message content column width.
- Drag “Input Box Width” to adjust the bottom input box width.
- To restore default values, click “Reset” next to the corresponding slider.
All changes take effect immediately.
The save location is:
~/.dsh/settings.yaml
The corresponding configuration section is:
dsh-width
Customizing Slider Parameters¶
To modify the slider range or default value, you need to modify both:
schemainlib/index.jsMIN,MAX,STEP,DEFAULTinlib/client.js
Compatibility and Dependencies¶
Target platform:
dsh --profile web
Version requirements:
- DSH
0.1.0-rc.6and later - No need to run
npm run exposefor0.1.0-rc.7and later
package.json peerDependencies include:
@deepseek-ai/cordis ^4.0.1@deepseek-ai/dsh-settings ^0.1.0-rc.6(optional)@deepseek-ai/schemastery ^3.18.1react ^18.0.0
Applicable Scenarios and Notes¶
Suitable for scenarios where you use DSH web and wish to manually adjust the ratio of the message content column and the bottom input box width.
Notes:
- The plugin runs with the permissions of the current
dshprocess. - You should check the repository source code, script commands, and license before installing.
- This article is based solely on verified information. Current information does not provide a verifiable directory page URL, so no specific directory page link is provided.
Obtain¶
GitHub repository:
https://github.com/Hanice404/dsh-width
dsh-width does a very specific thing: it provides two width sliders in DSH web’s “Settings → Display”, taking effect immediately and persisting to local configuration. For those who only need to adjust layout widths, this is a lightweight, resettable, and locally persistent web plugin.