Folds long composer drafts into a compact summary card once a character threshold is reached, without changing message submission.
Install
# from a prebuilt release tarball
dsh plugin --profile web add "https://github.com/Ztyss/dsh-draft-fold/releases/latest/download/dsh-draft-fold.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Ztyss/dsh-draft-fold
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
@ztyss/dsh-draft-fold —— 输入草稿自动折叠:当发送框草稿超过阈值时,收起原输入区并展示一张附件式摘要卡,不改变 DSH 的草稿状态、消息格式与发送路径。
安装
dsh plugin add --profile web "github:Ztyss/dsh-draft-fold"
- profile 依赖:
"@ztyss/dsh-draft-fold": "github:Ztyss/dsh-draft-fold#<commit>" - 预构建产物直接安装,无构建脚本、无 prepare
配置
0.2.0 起折叠阈值不再走 loader 条目配置(profile patch 层已废除),改为插件自有的持久设置文档:
- 入口:设置 → 插件 → 插件配置 → 草稿折叠
- 折叠阈值(字符),默认 300
- 摘要预览长度(字符),默认 120
- 保存即对当前页签热生效,无需重启;字段级「恢复默认」回到内置默认
开发
直接改 lib/(改完 node --check 验证),pnpm install --ignore-scripts 后 pnpm test(vitest,见 tests/)。
License: MIT(见 LICENSE)。
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 7971
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 7971
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
omdsh-dev/DSH-better-sidebar★ 3733
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
ccch1mneyyy/dsh-TUI★ 3169
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 3035
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1515
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.