跳到正文

Hotsteel2901/dsh-client-ui-mobile-adapt

80最近提交 2026年8月14日

dsh-client-ui-mobile-adapt DSH 插件

该插件专门为移动设备重构 DSH 的 Web 界面,尤其适合在 Android 上通过 Termux 使用 DSH 的开发者。它将桌面三栏布局转化为清爽的单栏移动布局,包含滑出式侧边栏、全屏面板和可展开的统计胶囊。桌面端体验完全不受影响。

如何安装 dsh-client-ui-mobile-adapt DSH 插件

dsh plugin --profile web <profile 名> add https://github.com/Hotsteel2901/dsh-client-ui-mobile-adapt/archive/refs/heads/main.tar.gz

来源命令需要人工核对。复制不会执行命令。

dsh-client-ui-mobile-adapt DSH 插件数据来源

dsh-client-ui-mobile-adapt DSH 插件快照日期:2026年8月16日

discovered

dsh-client-ui-mobile-adapt DSH 插件能做什么

  • 在视口宽度 ≤768px 时,将三栏 Grid 布局覆盖为单栏全宽布局。
  • 侧边栏变为滑出抽屉,左上角浮动汉堡按钮,点击遮罩层关闭。
  • 会话头部、输入工具行、设置面板、模型选择等弹层均适配移动端触控。
  • 底部统计胶囊显示轮次/步数/缓存/Token 摘要,点击展开完整可滚动的会话报告面板。
  • 支持 iOS 刘海安全区和动态视口高度(100dvh),确保异形屏显示正常。

dsh-client-ui-mobile-adapt DSH 插件适合哪些场景

  • 在手机上通过 Termux 使用 DeepSeek Harness,获得舒适的移动 UI。
  • 开发者在外出时无需切换桌面环境,即可继续编码和调试。
  • 在移动设备上快速查看会话统计、轨迹详情和设置。
  • 以 profile bundle 方式一键安装,与其他 DSH 基础包和 Web 应用包配合使用。

dsh-client-ui-mobile-adapt DSH 插件适合谁

  • 在 Android 上通过 Termux 使用 DeepSeek Harness 的开发者。
  • 需要移动端友好界面以便随时随地使用 DSH 的用户。

dsh-client-ui-mobile-adapt DSH 插件的限制

  • 仅在视口宽度 ≤768px 时生效,桌面及宽屏不受影响。
  • CSS 类名对应 DSH 0.1.0-rc.6 的前端构建产物,若 DSH 升级且前端构建变化,可能失效。
  • 需要宿主机提供运行时客户端服务(slots、layout、locale),无法独立运行。

dsh-client-ui-mobile-adapt DSH 插件的仓库 README 摘录

以下文字摘自 dsh-client-ui-mobile-adapt DSH 插件的上游仓库 Hotsteel2901/dsh-client-ui-mobile-adapt 的 README,版权归原作者,仅作引用。

> **Your DeepSeek Harness web UI, rebuilt for the phone in your hand.** > > Built for developers who code in **Termux on Android**: the three-column > desktop shell collapses into a clean single-column mobile layout — sidebar > becomes a swipe drawer, composer tools stay on one line, settings and > trajectory details open as full-screen panels that actually scroll, and a > tap on the stats pill reveals the whole session report. Desktop stays > exactly as it is; your phone finally works. > **为在手机上用 Termux 敲代码的你,把 DeepSeek Harness 的 Web 界面真正搬上手机屏。** > > 专为 Android 上的 Termux 开发者打造:三栏桌面布局收敛为清爽的单栏移动布局—— > 侧边栏变成滑出抽屉、输入工具保持一行、设置与轨迹详情以可滚动的全屏面板呈现、 > 点一下统计胶囊就能看到完整会话报告。桌面端分毫不动,手机端终于能用了。 DeepSeek Harness Web GUI 的手机端适配**客户端插件**。 纯客户端插件:仅在 `max-width: 768px` 视口下生效,桌面端完全不受影响。 采用官方客户端插件格式(`dsh.client` 声明 + `window.__ModuleLoader__.load` 模块), 同时可作为 profile bundle(`dsh.bundle.patch`)一键挂载。 ## 功能 | 区域 | 效果 | | --- | --- | | 整体布局 | 三栏 Grid 覆盖为 `0 minmax(0,1fr) 0`,中栏占满全宽 | | 侧边栏 | 左侧抽屉(`left` 位移动画),内容组件填满抽屉宽度 | | 汉堡按钮 | `shell.overlay` 槽位浮动按钮(左上角,安全区适配),点遮罩关闭 | | 会话头部 | 给汉堡留位、标题/操作可换行、「对话/轨迹」标签以屏幕中线为对称轴居中 | | 输入工具行 | 强制单行(权限选择/计划/附加/模型选择/上下文/发送),触发器限宽 112px | | 弹层 | 模型选择、上下文详情、命令菜单限宽 `calc(100vw -

阅读完整 README仓库许可: MIT

dsh-client-ui-mobile-adapt DSH 插件常见问题

如何安装 dsh-client-ui-mobile-adapt?

推荐作为 profile bundle 安装:创建一个新 profile 的 package.json,将本包添加为依赖,然后运行 `npm install`,最后用 `dsh --profile webmobile` 启动。也可以将本包加入现有 profile:使用 `dsh plugin --profile web <profile名> add <tarball URL>` 或手动在 `cordis.patch.yml` 中插入插件条目。

这个插件会破坏桌面端的 DSH 界面吗?

不会,它只在视口宽度 ≤768px 时生效,桌面和宽屏设备完全不受影响。插件设计时特意保留了桌面布局不变。

支持哪些设备和浏览器?

本插件针对 Android 上运行 Termux 的场景优化,但理论上任何支持 CSS 媒体查询和动态视口单位(100dvh)的浏览器都能工作。代码已包含 iOS 刘海屏安全区域适配。

如何更新到最新版本?

如果你通过 tarball URL 安装,请清除 npm 缓存并重新安装:`npm cache clean --force && rm -rf node_modules/dsh-client-ui-mobile-adapt && npm install`。如果锁定了特定 commit,请更新 package.json 中的 URL 后重新安装。

以后可以卸载这个插件吗?

可以。如果通过 profile bundle 安装,请从 profile 的 package.json 中移除 `dsh-client-ui-mobile-adapt` 条目,删除 node_modules 并重新安装。如果通过 cordis.patch.yml 安装,删除插入的插件条目并重启 DSH 即可。