安装 dsh-smooth-stream

为 DeepSeek Harness Web UI 加入流畅的流式渲染和丝滑滚动。下面包含安装、验证、配置、更新与卸载的完整步骤。

Install, verify, configure, update, and remove dsh-smooth-stream for the DeepSeek Harness Web UI.

开始之前

需要已经可以运行的 DeepSeek Harness,以及 Node.js 22.19+24+。插件发布在 npm,安装包已经包含构建好的 lib/

You need a working DeepSeek Harness checkout and Node.js 22.19+ or 24+. The npm package ships with prebuilt output.

安装步骤

  1. 安装插件

    在 DeepSeek Harness 源码目录运行:

    pnpm dsh plugin --profile web add dsh-smooth-stream

    如果 PATH 上已经有 dsh,也可以直接运行:

    dsh plugin --profile web add dsh-smooth-stream
  2. 启动 Web UI

    pnpm dsh web

    Start the Web UI after the plugin has been added to the web profile.

  3. 确认插件已加载

    Host 日志应出现:

    [dsh-smooth-stream] plugin loaded!

    也可以打开 设置 → 插件 → 全部,确认列表中显示 dsh-smooth-stream 和当前版本。

  4. 选择渲染节奏

    默认值是 balanced。需要调整时,在 profile 的 cordis.patch.yml 中修改 preset

    preset效果
    realtime更贴近模型内容到达速度
    balanced默认,渲染与跟随节奏均衡
    silky保留更大缓冲,追赶更从容

更新

dsh plugin --profile web update dsh-smooth-stream

更新完成后重启 Harness。使用下面的命令可以先检查是否存在新版本:

dsh plugin --profile web outdated

link:file: 本地开发安装不会被更新命令覆盖。

卸载

pnpm dsh plugin --profile web remove dsh-smooth-stream

如果使用全局 dsh,去掉命令开头的 pnpm 即可。

常见安装问题

需要允许 pnpm 构建脚本吗?

不需要。npm 包自带预构建文件,不依赖安装阶段执行构建脚本。

安装成功但没有看到效果怎么办?

先确认安装目标是 web profile,再检查 Host 日志和插件列表,最后重启 Web UI。开发安装应确认当前 profile 指向正确的 link:file: 路径。

怎样反馈问题?

GitHub Issues 附上 Harness 版本、插件版本、复现步骤和相关截图。