502399493zjw-lgtm/dsh-chat-fold0

dsh-chat-fold

为 DSH 默认聊天视图添加单轮执行过程折叠功能的 Web 插件包。

AI 分析

核心用途是优化聊天界面,将每轮对话的思考、工具调用等执行步骤折叠收起。适合希望简化界面视觉干扰、专注于对话结果的用户,依赖 DSH 0.1.0-rc.8。

包名
dsh-chat-fold
版本
0.1.0-rc.9
许可证
MIT
最近更新
2026年8月20日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:502399493zjw-lgtm/dsh-chat-fold

dsh-chat-fold

Optional DSH Web bundle that adds per-turn execution folding to the stock Chat view. It is pinned to stock DSH 0.1.0-rc.8.

After installation, the plugin wraps the existing Chat entry in place instead of registering another tab. The same rc.8 Chat component still owns history paging, scrolling, file opening, pending steering, and Deep diving...; the plugin only groups each turn's execution rows behind Execution process · N steps. Running work opens automatically and folds when the turn finishes. Expanding the group renders the registered native Context, Think, Tool, command, Goal, and Workflow surfaces with their normal inner disclosure defaults. User messages, final assistant answers, and the native turn tail remain outside the group.

Execution folding in the native Chat view

The GIF is an editorially retimed recording from stock DSH 0.1.0-rc.8: it shows a running turn staying open, the turn folding automatically on completion, and a manual reopen with native inner disclosures still closed.

This is deliberately a short-term, rc.8-specific integration. rc.8 does not expose a supported interceptor for a registered Chat entry, so the plugin temporarily replaces that entry's component and inject function while leaving its id, tab, store, child-slot ownership, and native renderSlot binding untouched. If the wrapper itself fails, it renders the captured stock Chat component with the untouched native props.

Install

dsh plugin --profile web add dsh-chat-fold@0.1.0-rc.9

Restart the Web process after installing the package, then reload the browser. To follow later prereleases instead, install dsh-chat-fold@next.

This plugin depends on rc.8's internal Chat registration shape. Re-run the tarball smoke and interaction tests before upgrading DSH; compatibility with a later DSH release must not be inferred from the package name or npm tag.

Remove

dsh plugin --profile web remove dsh-chat-fold

Restart the Web process and reload the browser. Removing the plugin restores the original Chat entry.

Development

pnpm install
pnpm test
pnpm run check
pnpm run build
pnpm run verify:package
pnpm pack

verify:package checks the built package boundary. A release claim additionally requires installing the packed tarball into an isolated stock DSH 0.1.0-rc.8 profile and exercising the wrapped Chat entry.

License

MIT