@adamcjm/dsh-genui-bugfix
Manifest validDeepSeek Harness plugin that stops dsh-ui table cells from painting their text over the next column, and lets long cells wrap instead of forcing a horizontal scrollbar.
@adamcjm/dsh-genui-bugfix
A DeepSeek Harness plugin that repairs dsh-ui table rendering:
- cells no longer paint their text over the next column — the bug where a long run of inline-code chips bleeds across the column boundary;
- long cells wrap instead of stretching the table until it needs a horizontal scrollbar.
It applies to the shipped @changfenhuang/dsh-genui 0.11.x and does not wait for an upstream release. Once upstream ships its own fix, this plugin stays harmless and can simply be removed.
What it fixes
dsh-ui table cells default to white-space: nowrap (the plugin's deliberate "data columns do not fold" voice). Meanwhile the host shell renders message bodies inside a .markdown subtree, and two rules from that sheet land on dsh-ui output because the components render in the same subtree:
.markdown { overflow-wrap: anywhere; } /* inherited by every cell */
.markdown :not(pre) > code { display: inline-flex; } /* every chip becomes an atomic inline box */
Add the plugin's own .inlineCode { white-space: pre-wrap } and the chip's automatic minimum size collapses: the column may be sized below its own content, while the cell's nowrap still paints the text unbroken — straight over the neighbouring column.
Only cells containing inline code are affected. A pure-text cell is nowrap, so its min-content already equals its content width and the column can never be sized below it.
Measured on a live DSH desktop page (7 tables): on 0.11.4, 4 tables and 12 cells overflowed, the worst single cell by 704px.
The two rules it injects
/* 1) Table chips must not re-open line breaking — this is the root cause. */
[class*="tableWrap"] table [class*="inlineCode"] { white-space: pre !important; }
/* 2) Single-line data cells wrap — long content no longer stretches the table. */
[class*="tableWrap"] table td:not([class*="tdMultiline"]):not([class*="tdCode"]),
[class*="tableWrap"] table th:not([class*="tdMultiline"]):not([class*="tdCode"]) {
white-space: normal !important;
overflow-wrap: anywhere;
}
The selectors use only CSS Modules class-name prefixes (tableWrap, inlineCode, tdMultiline, tdCode), never the build-time hash, so they survive plugin upgrades.
Rule 2 is a preference. Remove that block from lib/client.js if you would rather keep the upstream behaviour of a wider table plus horizontal scrolling.
Geometry verification
The same browser fixture, in an 801px container:
| Styles | Table width | Horizontal scroll | Cross-column bleed |
|---|---|---|---|
| upstream 0.11.4 (unfixed) | 1471px | yes | 4 cells, worst 306px |
upstream main (fix #282) | 1777px | yes | none |
| this plugin | 799px | no | none |
In other words: the upstream repair makes the table wider and asks you to scroll; this plugin lets the long content wrap, so the table fits the conversation column.
Install
The plugin is an ordinary DSH bundle: a dependency in a profile, plus one entry in that profile's bundle list.
From npm
-
Add it to the profile you want it in —
~/.dsh/profiles/<profile>/package.json:{ "dependencies": { "@adamcjm/dsh-genui-bugfix": "^0.1.0" }, "dsh": { "profile": { "bundles": ["…", "@adamcjm/dsh-genui-bugfix"] } } } -
Install it:
cd ~/.dsh/profiles/<profile> && pnpm install -
Restart the DSH app. The host-side plugin tree is assembled when the process starts, so a running instance will not pick up a new bundle.
If pnpm refuses the freshly published version because of a minimum-release-age policy, add the package name to minimumReleaseAgeExclude in that profile's pnpm-workspace.yaml.
From a local checkout
Use a link: path instead of the version, for example "@adamcjm/dsh-genui-bugfix": "link:/path/to/dsh-genui-bugfix", then run the same two steps.
Verify
After a restart the renderer carries one extra stylesheet:
document.getElementById('dsh-genui-bugfix/table-overflow') // non-null once loaded
Visually: tables with long inline-code runs no longer print text over the next column, and their width matches the conversation column instead of scrolling.
Without DSH running you can still check both halves against the loader contract:
cd <plugin> && npm test
Uninstall
- Remove
@adamcjm/dsh-genui-bugfixfrom the profile'sdependenciesandbundles; pnpm install;- restart DSH.
Relation to the upstream fix
- Upstream
mainalready fixes the overlap itself (PR #282, not yet released). Rule 1 here has the same effect and coexists with it — both keep the chip atwhite-space: pre. - The upstream browser fixture cannot catch that regression: its cross-column assertion is vacuously true because the fixture renders tables outside the host
.markdowncascade. See issue #285 and PR #286.
Layout
@adamcjm/dsh-genui-bugfix/
├── package.json # dsh.bundle.patch + dsh.client declarations
├── cordis.patch.yml # inserts one plugin row into the profile
├── lib/
│ ├── index.js # host half: node ESM, exports name/apply/inject, no behaviour
│ └── client.js # browser half: window.__ModuleLoader__.load({ id, factory })
├── test/verify.mjs # zero-dependency self-check of the loader contract
└── README.md
Both halves follow the shapes already used by shipped plugins:
- the host half is plain node ESM exporting
name/apply/inject— the same shape as the host half ofdsh-window-drag-probe, which also has no host-side behaviour; - the client half must be the pre-bundled form DSH serves to the renderer,
window.__ModuleLoader__.load({ id, factory }), wherefactoryreturns the exports carryingapply— the same shape as the client artifacts of@changfenhuang/dsh-genuianddsh-boot-animation. A plain ESMexport function applyis not loaded, and it fails silently rather than reporting an error. This plugin has no runtime dependencies, so its factory never needsrequire.
License
MIT
Comments
Loading…
From the same category
by ccch1mneyyy
DSH 官方公众号收录的 TUI 补位插件:Claude Code 风,鲸鱼顶栏/实时状态/流式思考/双击 Esc 回滚/上下文进度+TPS。npm 一键装。 DSH official WeChat featured TUI plugin — Claude Code style: whale bar, live status, streaming thoughts, double-Esc rol
★ 4.6k
↓ 11.6k/wk
MIT
TypeScript
Oct 14, 2026
dsh plugin --profile terminal add @deepseek-harness-tui/dsh-tuiby strukto-ai
The World's First Virtual Terminal for AI Agents
★ 3.7k
↓ 374/wk
Apache-2.0
TypeScript
Oct 14, 2026
dsh plugin --profile agent add @struktoai/mirage-dshby bowenliang123
The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,
★ 2.1k
↓ 44k/wk
Apache-2.0
TypeScript
Oct 13, 2026
dsh plugin --profile web add dsh-contextby huiliyi37
官方 DeepSeek Harness 的交互式终端 UI 插件:自研 ANSI 极简交互渲染、流式 Markdown/工具卡、16+ 主题、slash 命令与选择器、输入历史与本地偏好持久化、LSP 诊断、memory记忆,很丝滑的开发体验。
★ 285
↓ 486/wk
Apache-2.0
TypeScript
Sep 30, 2026
dsh plugin --profile terminal add @huiliyi37/dsh-tianshu-tuiby Hilbert-beinghappy
面向 DeepSeek Harness 的 Claude Code 风格终端界面,支持 Windows、macOS 与 Linux,兼容透明终端、VS Code 主题和自定义配色。
★ 196
↓ 108/wk
MIT
TypeScript
Oct 13, 2026
dsh plugin --profile web add seekttyby T-Auto
deepseek-harness Plugin Access and Implementation Standards / deepseek-harness交互生态插件规范与实施标准
★ 83
MIT
JavaScript
Oct 10, 2026