Liangebra / dsh-esc-enter

목록에 있음

opencode-style UX: Esc cancels the running turn in the DeepSeek Harness Web UI (Enter-while-busy handled by built-in setting)

main도구 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:Liangebra/dsh-esc-enter

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 f65eb66동기화 2026. 8. 18.

dsh-esc-enter

opencode 式 UX:Esc 取消当前任务 — DeepSeek Harness Web UI 按键插件。

Press Esc while the agent is running to cancel the current turn — the same action as the Stop button (Session.cancel()), keeping queued work for later turns.

Esc 取消当前回合(与"停止"按钮同机制,队列里未跑的工作保留到下一回合)。

特性 / Features

  • Esc = 退出当前任务:agent 运行中按 Esc 立即取消当前回合
  • Enter 行为不重复实现:busy 时 Enter 是"追加指令"(queue)还是"打断"(steer),由 DSH 内置的「Enter behavior while busy」设置负责
  • 空闲时不拦截 Esc:命令菜单 / 弹层照常关闭
  • 挂载于 conversation.composer.dock 槽,无宿主逻辑,纯客户端

安装 / Install

dsh plugin --profile web add github:Liangebra/dsh-esc-enter

重启 dsh web 并硬刷新浏览器(Ctrl/Cmd+Shift+R)。

工作原理 / How it works

Client bundle 监听 conversation.composer.dock 槽位;当 ConversationSnapshot.running === true 时注册 document 级 capture 阶段的 keydown 监听,命中 Esc 即调用 sessions.binding(sessionId).session.cancel()(与停止按钮同一路径)。

协议 / License

MIT

저장소 정보

언어
JavaScript
라이선스
MIT
마지막 업데이트
2026. 8. 16. 오후 11:59

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.