dshbase

Plugin directory / UI & Skins / dsh-esc-stop

dsh-esc-stop

Verified · install-tested on dsh 142475

✓ Actively maintained Builds on 3 official DSH packages

View on GitHub ↗ ← Back to plugin directory

1Stars
0Forks
0Open issues
—Language
2026-08-19Last push
Cross-platformPlatform

What it does

DeepSeek Harness web GUI plugin: press Esc to stop conversation generation (same as the stop button).

✅
Our take
Works — verified, early-stage project

DeepSeek Harness web GUI plugin: press Esc to stop conversation generation (same as the stop button). It installs cleanly and boots without issues in our testing. It's early-stage but functional.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

dsh-esc-stop

DeepSeek Harness Web GUI 插件:连续按两次 Esc 停止当前对话的生成——效果与点击 GUI 停止按钮完全一致。

无额外 UI、无需配置、无 host 逻辑。浏览器端捕获 Escape 键,通过 GUI 停止按钮同一条 RPC(session.cancel,经共享的 connection 服务)取消当前回合。两次按键间隔需在 400ms 内,可避免误触。

功能

  • 在会话内任意位置连按两次 Esc(400ms 内)→ 停止正在运行的回合。
  • 与内置停止按钮等价:待处理的 inbox 消息保留,之后按 FIFO 恢复。
  • 按键重复安全(忽略 e.repeat),单次按住不会触发,必须按两次。
  • 长按或单击 Esc 不会触发;两次按键间隔超过 400ms 则重新计时。

安装

将包加入 web profile 并注册 bundle:

# 在 profile 目录(如 ~/.dsh/profiles/web)下执行
dsh plugin --profile web add git+https://github.com/142475/dsh-esc-stop.git

然后在 profile 的 package.json 的 dsh.profile.bundles 数组中加入 "dsh-esc-stop":

{
  "dsh": {
    "profile": {
      "bundles": [
        "dsh-esc-stop"
      ]
    }
  }
}

重启 dsh web 即可生效,无需进一步配置。

工作原理

层 职责
lib/client.js 浏览器端:在会话头部操作区注册隐藏项,安装 window keydown 监听,400ms 内连按两次 Escape 时调用 connection.api.sessions.cancel({ sessionId })。
lib/index.js Node 端:最小 cordis 行,保证 bundle patch 挂载;全部行为在客户端实现。

session.cancel RPC 与 GUI 停止按钮调用的是同一条,因此行为(包括 inbox 保留、子代理 agent-busy 语义)完全一致。

注意

  • 仅 web profile(dsh web);tui/headless profile 有自己的停止键。
  • 会话打开时监听生效;无会话的首屏(hero)无可停止内容。
  • 两次 Esc 间隔超过 400ms 则重新计时,单击不会触发。

License

MIT

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-esc-stop for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:142475/dsh-esc-stop

Headless (CLI) profile:

dsh plugin --profile headless add github:142475/dsh-esc-stop

Test report

Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in UI & Skins

Browse all 7819 plugins →