Development & Runtime

dsh-enter-approve

abcofabc/dsh-enter-approve · ★ 0

abcofabc

Press Enter to approve the sandbox permission-escalation prompt in the DeepSeek Harness WebUI instead of clicking the Allow once button.

An English summary is not available; the Chinese summary is shown.

License
MIT
Added
2026-10-30
Maintenance
active
Install kind
github
Manifest status
Declared
Manifest path
package.json#dsh
Manifest checked
2026-10-30T09:38:15.836Z
Lifecycle scripts
None found

Static manifest checks report declarations only; they are not compatibility or security review.

安装

dsh plugin --profile web add 'github:abcofabc/dsh-enter-approve#00f0d18e66487dcf7ef455af5cd9b00d11ef817f'

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: en · Read Chinese README

Table of contents
  1. Features
  2. Install
  3. How it works
  4. Uninstall
  5. Credits
  6. License

中文

Press Enter to approve the sandbox permission-escalation prompt in the DeepSeek Harness WebUI - no mouse click required.

Features

  • While an approval panel (等待审批 / "Waiting for approval") is showing, a plain Enter press clicks the Allow once button.
  • Adds a small hint (按 Enter 允许一次 / "Press Enter to allow") under the panel's buttons.
  • Zero interference elsewhere: ignores Enter while typing, IME composition, modifier keys (Ctrl/Cmd/Shift/Alt + Enter), and whenever no approval panel is present.

Install

  1. Link this package into your dsh profile: ~/.dsh/profiles/web/node_modules/dsh-enter-approve
  2. Add it to ~/.dsh/profiles/web/package.json under dependencies ("dsh-enter-approve": "link:<absolute path>") and to dsh.profile.bundles.
  3. Fully restart DeepSeek Harness.

How it works

A tiny browser script is injected into the served index.html through webServer.tapIndex(). It listens on document (capture phase) for a plain Enter keypress and, while an approval panel ([data-approval-key]) exists on screen, forwards the press to the panel's "Allow once" button - the same click path a mouse click uses.

Uninstall

Remove the node_modules link and both references in package.json, then restart DSH.

Credits

This plugin was created entirely by DeepSeek-v4-flash through the DeepSeek Harness.

此插件是完全由DeepSeek-v4-flash通过DeepSeek harness制作的

License

MIT