Introduction¶
When using DeepSeek Harness (DSH) in the web interface, the composer card height is usually fixed. When handling long drafts, shrinking the window causes the bottom content to be cropped, making the last few lines invisible. The dsh-composer-resize plugin adds a drag handle to the top of the composer card, solving this interaction pain point.
Plugin Overview¶
This is a pure browser-side plugin implemented by anchoring stable data-* attributes in DSH. While dragging, the view remains anchored to the bottom of the text, so a long draft stays visible after being resized down.
Core Features¶
- Drag direction matches resize direction: Dragging up makes the composer taller, and dragging down makes it shorter.
- Bottom anchoring: During dragging, the view always remains anchored to the bottom of the text, so the last few lines stay visible after resizing down.
- Adjustment range: 52px to 75% of viewport height (maximum 720px).
- Implementation: Pure browser-side implementation; it does not call the model, execute host commands, or write to session logs.
Installation and Enablement¶
Use the official command to install the plugin:
dsh plugin --profile web add github:rosefinch539/dsh-composer-resize
After installation, restart DSH or hard refresh the webpage (Ctrl+F5) to load the new plugin.
Typical Usage¶
- Find the small drag handle on the top edge of the composer card.
- Drag up to increase the composer height, or drag down to decrease it.
- During dragging, the view remains anchored to the bottom of the text, ensuring the last few lines stay visible.
Applicable Scenarios and Notes¶
- Applicable scenarios: Scenarios where you need to dynamically adjust the composer size in the DSH web interface.
- Notes:
- Restart DSH or hard refresh the webpage (Ctrl+F5) to load the new plugin.
- Depends on the DSH
0.1.0-rc.6web UI (data-composer-card/data-input-scroll). - It is recommended to use Chromium-based browsers such as Chrome or Edge (with Pointer Events support).
Conclusion¶
This plugin solves the pain point of displaying long drafts through simple interaction. See below for the directory page and source repository.
- Directory page: https://www.skillhub.cn/plugins/rosefinch539/dsh-composer-resize
- Source repository: https://github.com/rosefinch539/dsh-composer-resize