DeepSeek Harness plugin

dsh-composer-height

DSH Web 输入框高度微调:把对话输入文本区最小高度从官方默认 2 行(52px)提高到 3 行(76px),client-only

Jump to install

Source facts

Repository
tuogusa/dsh-composer-height
Latest update
Aug 18, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/tuogusa/dsh-composer-height
Plugin: dsh-composer-height
Author: tuogusa

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-composer-height

DeepSeek Harness Web 输入框高度微调插件(client-only):把对话输入框文本区的最小高度从官方默认的两行(52px)提高到三行(76px)。

效果

  • 空输入时文本区默认显示三行(76px),整个输入卡片随之增高(卡片总高从约 118px 变为约 142px);
  • 输入内容超过三行后仍按官方 auto-grow 逻辑自动增高,直到官方最大高度 --dsh-composer-text-max-height
  • 消息区的滚动避让由 DSH 自身实测 --dsh-composer-height 完成,无需任何额外处理。

原理

官方输入框的 auto-grow 结构中,[data-input-mirror]visibility:hidden 的镜像 div,内容为草稿文本 + 换行)是唯一撑起文本区高度的在流元素,textarea 高度 100% 跟随、卡片高度自动适应。因此只需注入一条规则:

[data-input-mirror] {
  min-height: 76px !important;
}

即可让文本区、卡片与消息区避让全部自适应,不修改任何 DSH 源码与内部状态。

调整高度

编辑 lib/client.js 顶部的 MIN_HEIGHT_PX 常量(当前 76 = 3 行;每行 24px),保存后重启 DSH 并 Ctrl+Shift+R 强刷。

安装

dsh plugin --profile web add github:tuogusa/dsh-composer-height

兼容 Profile:web(DSH Web GUI)。

验证

仓库自带离线验证脚本(8 项断言:host 空插件、样式注入内容与幂等性):

node verify.mjs

结构

cordis.patch.yml     bundle patch(loader 行)
lib/index.js         host 端(空插件,保持 loader 行 enabled)
lib/client.js        client 端:注入 min-height 规则
verify.mjs           离线验证脚本

License

MIT