rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:483218131/dsh-composer-collapse
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Height manager for the DeepSeek Harness (DSH) Web composer — three modes for the input box height: Auto (collapsed while reading, expanded while editing), Pinned Open (official 336px), Pinned Collapsed (72px). Pure client-side patch plugin, zero host modification.
DeepSeek Harness(DSH)Web 输入框高度管理插件:自动(阅读时折叠/编辑时展开)、常驻展开(官方 336px)、常驻折叠(72px)三态循环。纯客户端补丁,零本体改动。
The official composer auto-grows with content up to 336px (14 lines) and then scrolls internally — there is no collapse control or setting. While reading AI replies and editing a long draft at the same time, the expanded box covers a large part of the chat. This plugin keeps the official content-adaptive growth untouched and only tightens the max-height ceiling per mode.
| Mode | Ceiling | Behavior |
|---|---|---|
| Auto (default) | blurred 72px (3 lines) / focused 192px (8 lines) | collapses while reading, expands when you click into the editor |
| Pinned Open | 336px (official value) | identical to the official behavior, never auto-collapses |
| Pinned Collapsed | 72px (3 lines) | stays collapsed even when focused |
auto → pinned open → pinned collapsed → auto; keyboard Alt+Shift+C does the same.localStorage (dsh.composerCollapse.mode) and survives reloads.# from GitHub
dsh plugin --profile web add github:483218131/dsh-composer-collapse
# or from a local checkout
dsh plugin --profile web add link:<path-to>/dsh-composer-collapse
# uninstall (fully restores the official behavior)
dsh plugin --profile web remove dsh-composer-collapse
Refresh the Web page after installing.
Constants at the top of client/client.js: CAP_COLLAPSED / CAP_FOCUSED / CAP_OPEN (official line grid is 24px/line) and TEXT_INSET_RIGHT (right inset reserved for the corner button). Local link: installs pick up edits after a page refresh.
| DSH | Status |
|---|---|
| 0.1.1-rc.2 | ✅ tested |
| 0.1.2-rc.1 | ✅ hooks verified (data-composer-card / data-input-scroll / --dsh-composer-text-max-height all present; the editor moved to Lexical — the focus selector covers both textarea and [contenteditable]); live smoke pending |
:has(), Chromium 105+ (Edge/Chrome 2022+).data-* attributes, not hash classes; if a DSH upgrade breaks behavior, check the hook list below first.Source of truth: @deepseek-ai/dsh-client-ui-conversation@0.1.1-rc.2 lib/client.js (inspected 2026-09-08):
data-composer-card (~L3991); scroll container data-input-scroll (~L4020)max-height:var(--dsh-composer-text-max-height);overflow-y:auto (~L3463)336px (~L7118); text layers padding:4px 12px 0 16px; line height 24px → 336px = 14 linesdata-input-mirror (~L4060) drives content-following height; <textarea rows={2}> (~L4042)All side effects (style injection, DOM nodes, observers, listeners) must be registered inside ctx.effect(...). Side effects started directly in apply() get retracted by the kernel's epoch reconciliation right after activation — silently, with no console error.
padding-right on the scroll container, so backdrop/mirror/input shrink together — draft text and command-hint decorations stay aligned.官方输入框内容多时自动长高到 336px(14 行)后框内滚动,没有折叠控件也没有设置项。边阅读 AI 回复边编辑长草稿时,展开的输入框会挡住大量聊天内容。本插件不改官方内容自适应机制,只按模式收紧 max-height 天花板。
| 模式 | 封顶 | 行为 |
|---|---|---|
| auto(默认) | 失焦 72px(3 行)/ 聚焦 192px(8 行) | 阅读时自动折叠让出内容区;点进输入框自动展开 |
| 常驻展开 | 336px(14 行,官方原值) | 与官方行为完全一致,不自动折叠 |
| 常驻折叠 | 72px(3 行) | 聚焦也不展开,最大化阅读区 |
auto → 常驻展开 → 常驻折叠 → auto;快捷键 Alt+Shift+C 等效。dsh.composerCollapse.mode),刷新后保持。# 从 GitHub 安装
dsh plugin --profile web add github:483218131/dsh-composer-collapse
# 或本地目录
dsh plugin --profile web add link:<路径>/dsh-composer-collapse
# 卸载(完全恢复官方行为,无本体文件改动)
dsh plugin --profile web remove dsh-composer-collapse
安装后刷新 Web 页面生效。
client/client.js 顶部常量:CAP_COLLAPSED / CAP_FOCUSED / CAP_OPEN(官方行栅格 24px/行)、TEXT_INSET_RIGHT(角标按钮让位宽度)。link: 本地安装下改完刷新页面即生效。
| DSH | 状态 |
|---|---|
| 0.1.1-rc.2 | ✅ 实测 |
| 0.1.2-rc.1 | ✅ 钩子已核对(data-composer-card / data-input-scroll / --dsh-composer-text-max-height 均在;编辑器换为 Lexical——聚焦选择器已同时覆盖 textarea 与 [contenteditable]);线上冒烟待测 |
:has(),需 Chromium 105+(Edge/Chrome 2022+)。data-* 属性,不碰 hash class;DSH 升级后行为异常时先核对下方钩子清单。来源 @deepseek-ai/dsh-client-ui-conversation@0.1.1-rc.2 lib/client.js(2026-09-08 实查):
data-composer-card(约 L3991);滚动容器 data-input-scroll(约 L4020)max-height:var(--dsh-composer-text-max-height);overflow-y:auto(约 L3463)336px(约 L7118);文本层 padding:4px 12px 0 16px;行高 24px → 336 = 14 行data-input-mirror(约 L4060)驱动高度跟随内容;textarea rows={2}(约 L4042)全部副作用(样式注入、DOM 节点、观察器、监听器)必须注册在 ctx.effect(...) 内。直接写在 apply() 本体的副作用会被内核 epoch 对账机制在激活后立刻回收——静默发生,控制台无任何报错。
padding-right 整体让位,backdrop/mirror/input 三层同步缩窄,草稿文字与命令提示装饰对齐不受影响;MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。