Skip to content
dsh-market Browse plugins GitHub 中文

Pudge1996/dsh-composer-stretch

Expand button for the DSH Web UI composer — appears at 3+ lines, stretches to near-fullscreen height, auto-collapses on send, and Enter inserts newlines in expanded mode.

Stars ★ 1 Category UI Enhancements Listed 2026-08-28 npm dsh-composer-stretch

Install

Inside DeepSeek Harness, with dsh-market

dsh plugin --profile web add dshmarket

Or from the command line

dsh plugin --profile web add dsh-composer-stretch

Installing runs third-party code with your own permissions — it can read your files, use your credentials and reach the network. Review the source first, and pin a commit (github:owner/repo#sha) when you can.

README

中文 | English

A composer expand plugin for DeepSeek Harness. When the composer text wraps to 3+ lines, an expand button appears in the top-right corner of the composer; click to stretch the composer to fullscreen height, click again to restore the default height.

https://github.com/user-attachments/assets/3d15f435-284f-4cbe-87c1-e59e47c64667

The interaction is inspired by Gemini, with additional DSH-specific height adaption and scroll-through prevention fixes.

Install

# Web profile
dsh plugin --profile web add dsh-composer-stretch

# Desktop app: quit the app first
dsh plugin --profile desktop add dsh-composer-stretch

Triggers

  • Conditional button — the expand button appears in the top-right when the composer reaches 3+ lines.
  • Triple-newline auto-expand — press Shift+Enter three times in a row to auto-expand.

Expand behavior

  • Fullscreen composer — the composer stretches to near-fullscreen height (adapted to avoid occlusion by the session title, image attachments, etc.).
  • Attachment room — pasting an image or file while expanded gives the attachment rail back exactly its own height from the draft area, so the card keeps its size instead of overflowing the conversation area.
  • Auto-collapse on send — the composer restores its default height after sending a message.
  • Enter behavior while expanded — Enter and Shift+Enter insert newlines; Cmd/Ctrl+Enter sends. Collapsed, Enter still sends.
  • Scroll containment — scrolling inside the expanded composer no longer chains through to the conversation background.

Notes

  • Tested against DSH v0.2.0-rc.2
  • Stable UI — relies on stable data-slot anchors and DSH design tokens for high compatibility.
  • No persistence — state resets on page refresh; no localStorage residue.
  • Frontend only — no custom protocols, no host commands, no LLM calls, no session-log entries.

License

MIT

Content from the project README on GitHub ↗

Comments

Comments live in GitHub Discussions. Sign in with GitHub to post or react.