Thinking in Chinese: injects a system prompt so thoughts and replies stay in Chinese, expands the reasoning block by default with interactive collapse, and localizes UI labels (npm: `dsh-think-zh-expand`).
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-think-zh-expand
# from a prebuilt release tarball
dsh plugin --profile web add "https://github.com/baosfeng/my-dsh-plugins/releases/download/dsh-think-zh-expand@v0.4.3/dsh-think-zh-expand-0.4.3.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:baosfeng/my-dsh-plugins#path:/plugins/dsh-think-zh-expand
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.
DSH 思考增强插件:让 agent 的思考(reasoning)与回复强制使用中文,对话里的思考内容默认展开显示(替代内置的单行折叠)。
功能
- 思考强制中文(server 端):经
systemPrompt.section注入一条最高优先级的语言规则——思考过程必须简体中文、最终回复跟随用户语言;英文错误信息与英文上下文不改变语言,代码、命令、路径、术语保持原文。 - 思考默认展开(client 端):覆盖
conversation.chat.node的assistant-step渲染器,思考内容完整显示、点击标题行可收起(流式生成中强制展开),并同样走 Markdown 渲染(代码块 / 表格 / 公式 / Mermaid 图表)。
Markdown 渲染直接用宿主官方 baseline 组件 @deepseek-ai/dsh-client-ui-primitives 的 MarkdownText(平台 seed 模块,零安装即可渲染);极旧 / 裁剪宿主回退纯文本 <pre>,渲染期始终不抛错。本插件不跨插件取渲染内核(不 require 其它特性插件、不声明 dsh.client.external)。
安装
# npm 安装(推荐;无需任何外部渲染内核)
dsh plugin --profile web add dsh-think-zh-expand --trust-lockfile
# 本地 link(本仓库开发者)
git clone https://github.com/baosfeng/my-dsh-plugins.git
dsh plugin --profile web add link:<仓库路径>/plugins/dsh-think-zh-expand
- server 端改动需重启
dsh web;client 端改动浏览器硬刷新(Cmd/Ctrl+Shift+R)即可。
配置
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defaultExpanded |
boolean | true |
思考块展开初值。true(默认)= 保持本插件的产品定位「思考默认展开」;false = 初始折叠,流式生成中仍自动展开、生成完成后收起。 |
可视化编辑(推荐):DSH Web 里打开 设置 → 插件 → 思考增强,切换开关「思考默认展开」后点「保存」。host 半会把值写回 profile patch 文件($DSH_HOME/profiles/<profile>/cordis.patch.yml 的 - id: think-zh-expand 行),并立即生效(无需重启 dsh web)。
也可以直接在 profile patch 的插件行里手写($DSH_HOME/profiles/<profile>/cordis.patch.yml,默认 ~/.dsh/profiles/web/cordis.patch.yml):
- insert:
- id: think-zh-expand
name: 'dsh-think-zh-expand'
config:
defaultExpanded: false # 想要「流式展开 → 完成收起」就设为 false
- 保存只改
defaultExpanded一个键:该行其它已有配置项原样保留(不会因保存被抹掉)。 - 取值只认布尔:非法值 / 缺失一律回退
true,脏值不会写进文件。 - 缺失该配置、值非布尔、或配置读写通道不可用(非 web 宿主、路由未注册)时,一律回退
true—— 配置面永远不会让插件从「默认展开」静默变成「默认折叠」。 - 读写通道:host 半边经
webServer注册GET/PUT /think-zh-expand/api/config(仅 loopback 可访问);写盘失败返回 500,设置页据此提示「保存失败」。
迁移说明(移除中文化与跨插件渲染内核后)
- 界面硬编码英文的中文化已移除:官方 zh locale 已覆盖
思考(ui-chat/src/client/locale.ts的message.think)与工具调用(ui-conversation/src/client/locales.ts),本插件再扫 DOM 改写文本属重复实现,且会误伤宿主文案;界面语言请跟随 DSH 官方设置。无配置键受影响(中文化原本无开关)。 - 不再需要
dsh-md-render:思考块与文本块的 Markdown 渲染改用官方 baseline 组件;若你之前为它而安装dsh-md-render,可以安全卸载(本插件不再读取它)。
相关文档
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 8370
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★ 8370
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.
ccch1mneyyy/dsh-TUI★ 4036
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 4004
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.
omdsh-dev/DSH-better-sidebar★ 3992
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1418
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.