13071301808/dsh-composer-expand ↗★ 0
dsh-composer-expand
Composer expand toggle for DeepSeek Harness: a ⬆/⬇ button in the composer tool row toggles the input between the default capped height and a tall 70vh writing view, so long drafts stay readable.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:13071301808/dsh-composer-expand说明文档
阅读完整 README ↗dsh-composer-expand
Composer expand toggle for DeepSeek Harness (dsh). A ⬆/⬇ button in the composer tool row toggles the input between the default capped height and a tall 70vh writing view, so long drafts no longer scroll inside a tiny window.
Why
The harness caps the composer textarea at a small height by default (the seat sets --dsh-composer-text-max-height: 336px, which caps the textarea scrollport). When the draft grows long, you end up scrolling inside a few lines instead of seeing the whole draft. This plugin keeps the default behavior for short drafts and offers a one-click toggle for the times when you are writing a long prompt.
Features
- ⬆ button in the composer tool row — sits in
conversation.input.right, the official seat for clickable controls beside the send button. - Grows composer to 70vh on expand — flips a CSS class on the conversation scrollport; the composer card + textarea both relax their
max-height. Click again to restore the default capped height. - Persists per browser — the toggle writes
localStorage[dsh-composer-expand:expanded]so the choice survives reloads and workspace switches. - i18n zh/en — button label and tooltip follow the harness
localeservice. - No custom wire protocol — pure client-side CSS toggle; no host command, no LLM call, no session log entry.
- Localize-safe — anchors the CSS on DSH's stable
data-conversation-scroll/data-conversation-composer-overlaydata attributes, not on hashed classnames that change per build.
Install
Prerequisites
The dsh CLI must be on your PATH. If you only ever ran the harness through npx, dsh is not installed and you will get zsh: command not found: dsh — install it globally first:
npm install -g @deepseek-ai/dsh
Add the bundle
For local development (this repo):
# 1. build the bundles (tsdown produces lib/index.js + lib/client.js)
pnpm install
pnpm build
# 2. add the bundle to your web profile
dsh plugin --profile web add ./
# 3. restart the harness with that profile
dsh --profile web