DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-approval-enter

G

dsh-approval-enter

Manifest valid

Focus the DeepSeek Harness approval panel automatically, so Enter approves and Esc rejects without reaching for the mouse.

UI (client)hasBundlePatch

dsh-approval-enter

Focus the DeepSeek Harness approval panel automatically, so Enter approves and Esc rejects without reaching for the mouse.

dsh 的审批面板弹出时自动获取焦点,回车批准、Esc 拒绝,不用再点鼠标。


The problem · 问题

DeepSeek Harness ships Enter/Esc shortcuts for approvals, but the panel inserts itself alongside the composer without taking focus:

// @deepseek-ai/dsh-client-ui-approval/lib/client.js
if (event.defaultPrevented
    || !event.currentTarget.contains(document.activeElement)   // ← requires focus inside
    || element.closest("input, textarea, ...") !== null) return;

Focus stays in the composer, whose Enter means "send", so Enter never reaches the panel. You have to click the card first — or press Tab.

This plugin makes the focus follow the panel.

What it does · 行为

Composer stateBehaviour
EmptyFocus moves into the panel → Enter approves, Esc rejects
Has a draftFocus is left alone — your Enter still means "send"; Tab reaches the panel
Same requestDecides once, does not fight you for focus
Panel closesFocus returns to where it was

The draft rule is deliberate: stealing focus mid-sentence loses typing, and a reflexive Enter afterwards could approve a destructive command.

Install · 安装

dsh plugin --profile desktop add github:YOUR-USER/dsh-approval-enter

Or pin a local clone (edits take effect immediately — the profile links it):

git clone https://github.com/YOUR-USER/dsh-approval-enter ~/dsh-plugins/dsh-approval-enter
dsh plugin --profile desktop add "link:$HOME/dsh-plugins/dsh-approval-enter"

Restart DeepSeek Harness afterwards.

Uninstall · 卸载

dsh plugin --profile desktop remove dsh-approval-enter

Compatibility · 兼容性

  • DeepSeek Harness desktop app, or dsh web
  • Verified against the panel markup as shipped in dsh 0.2.0-rc.2
  • No API key, no login, no runtime dependencies

If a future build renames the panel's data-approval-key / data-approval-scroll attributes the focus target is not found; the plugin then falls back to the panel root and grants it a programmatic tab stop. If the panel cannot be focused at all, the plugin does nothing and the shipped behaviour returns.

How it works · 原理

The official panel renders two hooks this plugin uses:

  • the panel root carries data-approval-key and owns the keydown handler
  • the detail area carries data-approval-scroll and tabIndex: 0

A MutationObserver watches for the panel, and — only when the composer holds no draft — moves focus to the detail area. The official keydown guard then sees focus inside the panel and lets Enter and Esc through. Nothing else is patched, and no official file is modified: the browser half ships through exports["./client"], the way any dsh client plugin does.

License

MIT

Comments

Loading…

Similar plugins

dsh-approval-hotkeys

by SiriLee

Approval-panel hotkeys for DeepSeek Harness — Enter approves once, Esc rejects · DSH 插件:审批面板快捷键,Enter 批准一次,Esc 拒绝

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 2

↓ 336/wk

MIT

TypeScript

Oct 16, 2026

dsh plugin --profile web add dsh-approval-hotkeys

by wukiQAQ

Codex-style keyboard answers for the pending command-approval panel — 1 allows once, 2 rejects, Enter confirms the highlighted choice, arrow keys move it, and Esc rejects, with the buttons still usabl

UI & ExperienceManifest valid

★ 0

JavaScript

Oct 15, 2026

dsh plugin --profile web add dsh-enter-using

by StyxNether

Auto-Approval: a middle permission tier for DeepSeek Harness between workspace-write and danger-full-access, auto-approving harmless commands and trusted-area targets

Security & AuditManifest valid

★ 4

↓ 88/wk

MIT

JavaScript

Sep 6, 2026

dsh plugin --profile web add dsh-auto-approval-plugin

by 904915452

DeepSeek Harness plugin: configurable keyboard shortcuts (settings UI + input history + approval/plan hotkeys)

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Aug 17, 2026

dsh plugin --profile web add @zhangqingyu/dsh-keyboard-shortcuts

by J0ss077

Stop. Confirm. Run. A DeepSeek Harness plugin that pauses selected tools and waits for your explicit approval before every execution.

Security & AuditDevelopment & InfrastructureManifest valid

★ 3

↓ 18/wk

MIT

TypeScript

Sep 6, 2026

dsh plugin --profile web add @j0ss077/dsh-always-require-tools-approval

by copylee711

DeepSeek Harness 的 Windows 电脑控制插件:截图、鼠标、键盘、窗口与剪贴板工具,按应用授权,Esc 暂停。

Tools & CapabilitiesManifest valid

★ 16

↓ 1.1k/wk

MIT

TypeScript

Oct 22, 2026

dsh plugin --profile web add @copylee/dsh-computer-use