DeepSeek Harness 插件

dsh-chat-widener

Widen the DeepSeek Harness Web UI conversation content area (shipped default 748px) by overriding the chat-width CSS variables; configurable via the plugin row config.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
garrisonz/dsh-chat-widener
最近更新
2026年8月17日
分类
界面增强
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/garrisonz/dsh-chat-widener
插件名:dsh-chat-widener
作者:garrisonz

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-chat-widener

Widen the DeepSeek Harness Web UI conversation content area. The shipped chat column is 748px (--dsh-chat-content-width); this plugin overrides it — default 1200px, configurable — so messages, tables and the composer all render wider (Doubao-web-style). Pure CSS injection, no host logic, no vendor-file patching, survives dsh upgrades.

把 DeepSeek Harness Web UI 对话内容区加宽。官方对话列宽为 748px (--dsh-chat-content-width),本插件默认覆盖为 1200px(可配置), 消息、表格与输入框一起变宽。纯 CSS 注入:无宿主逻辑、不打补丁、升级不失效。

Config / 配置

keymeaning / 含义default / 默认
widthcontent width, px / 内容区宽度1200

Sane range [748, 2400]; out-of-range values fall back to 1200.

Install / 安装

dsh plugin --profile web add dsh-chat-widener        # npm(发布后)
# 或本地开发: dsh plugin --profile web add link:/path/to/dsh-chat-widener
# 然后重启 dsh web

> dsh plugin requires pnpm on PATH.

Tune / 调参

Edit ~/.dsh/profiles/web/cordis.patch.yml:

- id: chat-width
  name: 'dsh-chat-widener'
  config:
    width: 1400

Restart to apply. / 重启生效。

Preview without restart / 不重启预览

Paste into the browser DevTools console (Ctrl+Shift+I → Console):

const s = document.createElement('style');
s.textContent = '[data-conversation-scroll]{--dsh-chat-content-width:1200px;--dsh-composer-card-max-width:calc(var(--dsh-chat-content-width) + 32px)}[data-conversation-scroll] [class*="userStack"]{max-width:100% !important}';
document.head.append(s);

Uninstall / 卸载

dsh plugin --profile web remove dsh-chat-widener

No residue — the plugin only injects a <style> element at runtime. 无残留——插件只在运行时注入一个 <style> 元素。

Scope / 边界

This plugin's only job is the conversation content width. No buttons, no persistence, no other surfaces. / 本插件唯一职责就是对话内容宽度:不加按钮、 不持久化、不涉及其他界面。