DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Approval Autofocus — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
A

dsh-approval-autofocus

Approval Autofocus

审批卡出现时自动把焦点移入卡片,Enter 直接批准、Esc 直接拒绝(DSH Web / 桌面端客户端插件)。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:chupeter854-lang/dsh-approval-autofocus#77ee307b27437252d59ade03c7d3820b4b36b06e
README兼容性版本

兼容性与来源证明

Approval Autofocus 以 dsh-approval-autofocus 发布,当前版本为 1.0.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/1

版本

1.0.0stable
2026/10/1

相关插件

正在加载相关插件…

最新版
1.0.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/10/1
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 ui-customization 分类下经过校验的插件。

Client Ui Skill Explorer@linxin666/dsh-client-ui-skill-explorerDSH 技能中心:按来源(bundled / project / user / custom / runtime)浏览已加载的技能,在 Web GUI 面板中启用或禁用、创建和删除技能。Remote Web Ui@linxin666/dsh-remote-web-ui通过扫码配对访问 dsh Web GUI,共享一个官方界面:设置按钮旁的二维码可将手机和 PC 配对到同一个 Web GUI(手机采用竖屏触控适配层,PC 使用完整桌面界面),通过一次性令牌和 rClient Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Client Ui Git Graph@linxin666/dsh-client-ui-git-graph外部 dsh Web GUI 插件:空会话 Git 分支选择器和 Git 图,包含实际的主机端 Git 操作与防护,作为 dsh 配置文件包

README

dsh-approval-autofocus

Make Enter approve a pending DSH approval, without clicking the card first.

A tiny, dependency-free client plugin for DeepSeek Harness (DSH) Web / Desktop profiles. Once an approval card appears, focus is already inside it, so:

  • Enter → Allow once
  • Esc → Reject

中文说明

The problem it fixes

DSH's approval card (@deepseek-ai/dsh-client-ui-approval) does bind Enter/Escape — but only when the card already contains document.activeElement:

if (event.defaultPrevented || !event.currentTarget.contains(document.activeElement) || ...) return;

The card is rendered as a composer takeover: the composer it replaces is hidden with display:none, so the browser drops focus back to <body>, and the card never focuses itself. A plain Enter therefore lands nowhere — you have to click the card's text once before the documented "Enter approves / Esc rejects" actually works.

Without this plugin: click anywhere on the card's text, then press Enter.

What it does

It watches the DOM and, as soon as an approval card appears, moves focus into the card's detail area — but only when nothing else owns the focus:

Current focusBehavior
<body>, or lost to the composer takeoverfocus moves into the card
terminal, dialog, any input / contenteditableleft alone — focus is never stolen

The card's own behavior is untouched: the Reject button, Esc, IME composition handling and the pending-request lock all still work exactly as shipped.

Safety notes

Approval is a security decision, and this plugin deliberately makes it a one-keystroke action — worth knowing what that means:

  • The plugin only moves focus. It never presses keys and never approves anything; Enter still has to come from you.
  • It only takes focus when focus is otherwise idle (<body> or the hidden composer). While you are typing in a terminal, a dialog or any input, it does nothing.
  • If a model output ever tries to talk you into pressing Enter (prompt injection), the card being pre-focused means a stray Enter approves it. If that concerns you, click away — the plugin will not fight you for focus — or disable the plugin.
  • The compatibility fallback can never land on the Allow button or any other action control: buttons and form controls are excluded from the fallback selector, so a stray Enter at worst edits nothing and at most is a no-op inside the card's detail area.

Install

From the archive (recommended)

  1. Extract the folder somewhere permanent — e.g. ~/plugins/dsh-approval-autofocus;
  2. DSH sidebar → Plugins → Add plugin, paste the folder's absolute path;
  3. Click Enable now; restart DSH once if the page asks you to.

⚠️ DSH links to that directory: moving or deleting it breaks the plugin.

From a Git repository

Paste the repository URL into the same dialog. There is no hosted repository yet — the archive above is the shipped form.

Manually, via the profile

Add the package to dsh.profile.bundles in ~/.dsh/profiles/<profile>/package.json, or insert one row in that profile's cordis.patch.yml:

- insert:
    - id: approval-autofocus
      name: dsh-approval-autofocus

Uninstall

Disable or uninstall the bundle on the Plugins page. Nothing outside the plugin's own directory is modified.

Tests

node test/focus.test.mjs

Fourteen checks against a hand-written DOM stub (no test framework, no dependencies): focuses on appearance, never focuses twice, reclaims focus lost to the composer takeover, never steals focus from a terminal/dialog/editor, re-focuses a replacement card, stops observing when disposed — with or without a lifecycle hook.

How it is built

A DSH plugin bundle is a package that declares a Node half (main) and a browser half (dsh.client + exports["./client"]). The Node half here is empty — it exists so the profile has a loader row that makes the browser half get served and mounted. The browser half is a plain window.__ModuleLoader__.load({ id, factory }) bundle with no imports.

Limitations

  • It keys off the card's data-approval-scroll attribute, with [data-approval-key] [tabindex="0"] (excluding buttons and other action controls) as a fallback. If DSH restructures the card, the plugin silently stops working and you are back to "click the card, then press Enter".
  • Built and verified against DSH 0.2.0-rc.2. It is an unofficial community plugin, not part of DSH.
  • If you deliberately click away from the card, it will not fight you for focus.

License

MIT — see LICENSE.