rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Aily-DSH/dsh-sidebar-tab-close
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
让 DeepSeek Harness 的 Ctrl+W 优先关掉右侧栏当前标签页(而不是整个窗口),并支持双击标签直接关闭。
DSH 桌面客户端里 Ctrl+W 的默认语义是「关窗口优先级最高」:
于是「只想关掉正在看的那个标签页」这件事反直觉,还容易误关窗口。本插件把优先级倒过来:只要右侧栏展开且有可关的标签页,Ctrl+W 就关标签页;没有可关的标签页时才退回关窗口。同时补上鼠标侧的对应操作:双击标签页即关闭。
Ctrl+W(macOS ⌘W)优先关闭右侧栏的当前标签页app.asar、不写任何文件:全部通过官方 ctx.sidebarRight 服务在运行时打补丁,插件禁用即还原canCloseTarget 判定的不可关标签(例如唯一的引导页)仍不可关Ctrl+W)cd "/d/Program Files/DeepSeek Harness/resources/runtime/cli/bin"
./dsh.cmd plugin --profile desktop add "git+https://github.com/Aily-DSH/dsh-sidebar-tab-close.git"
或本地开发:
dsh plugin --profile desktop add "file:/D:/path/to/dsh-sidebar-tab-close"
装完必须重启一次 DeepSeek Harness 客户端:客户端插件的注入清单(injections)在宿主启动时计算一次,不重启不会加载。
重启后验证:
Ctrl+W → 当前标签页关闭,窗口还在Ctrl+W → 恢复原生行为(关窗口)| 场景 | 行为 |
|---|---|
| 侧栏展开、有可关标签、焦点在会话区 | 关闭当前活动标签页 |
| 侧栏展开、焦点就在面板内 | 关闭当前活动标签页(原生行为,不变) |
| 侧栏展开、唯一标签不可关 | 退回关窗口(原生行为) |
| 侧栏收起 | 退回关窗口(原生行为) |
| 双击标签页本体 | 关闭该标签页;双击标签内的关闭按钮等控件不触发 |
顺带的影响:page.close 之外的 page.* 命令在焦点于会话区时也会解析到当前标签页目标;Ctrl+R(page.refresh)同理——原本它在焦点外是被忽略的,现在最多变成刷新当前标签页,不会造成新的破坏。
ctx.sidebarRight.focusedTarget:commandTarget() 给出的当前会话活动面板目标commandTarget() 内部再次调用 focusedTarget 造成递归button/[role=button],再用 focusedTarget(tab) + canCloseTarget + closeTarget 走原生关闭路径dsh plugin --profile desktop remove dsh-sidebar-tab-close
重启客户端后恢复 DSH 原生 Ctrl+W 行为。
data-dockkit-tab / data-sidebar-right-tab 属性;DSH 若改标记,双击关闭会静默失效(Ctrl+W 仍走服务层,不受影响)focusedTarget 的插件叠加时,后加载者生效lib/index.js 宿主半:空实现,仅让客户端 bundle 被发现
lib/client.js 客户端半:包装 focusedTarget + 双击关闭
cordis.patch.yml 插入插件行
如果这个插件帮你省了钱,欢迎扫码请作者喝一杯 ☕(纯属自愿,不影响使用和更新)
dsh / dsh-plugin / deepseek-harness / plugin 等 topics。dsh.profile.indexes 即可在客户端内直接看到 dsh-sidebar-tab-close。dsh plugin --profile desktop add git+https://github.com/Aily-DSH/dsh-sidebar-tab-close.git 直接装。dsh-sidebar-tab-close flips the Ctrl+W priority in the DeepSeek Harness desktop client: when the right sidebar is open with a closable tab, Ctrl+W now closes that tab instead of the window. Double-clicking a sidebar tab closes it too. Pure client-side plugin — it wraps the public ctx.sidebarRight controller at runtime, never touches app.asar, and restores the stock behavior when disabled.
dsh plugin --profile desktop add "git+https://github.com/Aily-DSH/dsh-sidebar-tab-close.git"
# restart the client once
Sponsor: if this plugin saved you money, you can buy the author a coffee — scan assets/reward-qr.png.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、deepseek-harness-plugin。