Skip to content
dsh.fish
Bundle

dsh-interrupt-send

DeepSeek Harness client plugin: a tool-row button in the composer that aborts the running turn and immediately sends the current draft as the next turn (opt-in — normal Enter still queues).

Source
Hyna-hla
stars
1 stars
License
MIT
Updated
Updated 14 days ago

Readme

# dsh-interrupt-send

客户端插件:在输入框工具行(发送按钮左侧)加一个 **「打断发送」** 按钮。

- AI 正在思考且草稿非空时按钮才出现;
- 点击 = 中止当前回合(`session.cancel()`,Host 保留已排队内容并收敛)+ 立刻把草稿作为下一条消息发出去(走输入机正常提交管线,草稿自动清空、计入撤销历史);
- 普通回车保持原策略(排队/steer),按钮是**可选**的打断通道;
- 取消失败时兜底为普通排队发送,输入不丢。

## 实现要点

- 插槽:`conversation.input.right`(session 级 list 槽,owner share 为 `InputZone`:`session` 快照含 `running`,`input` 快照含 `draft/phase`)。
- 标准 kit:`inputActions.submit()` 提交草稿;`useInput` 未用(owner 骨架会在 store 变化时重渲染条目)。
- RPC:`ctx.sessions.binding(sessionId)?.session.cancel()` —— client 侧的取消动词,返回后 Host 达取消静止态。
- 纯客户端插件照 dsh-ambience 形态:host 仅 stub(保证组合行有效),`dsh.client{platform:"web", inject:["slots","locale"], immediately:true}`。

## 构建安装

```powershell
pnpm install
pnpm build
.\scripts\install-to-profile.ps1 -Name dsh-interrupt-send -SourceDir .
# 重启 DeepSeek Harness
```

Install

dsh plugin --profile web add github:Hyna-hla/dsh-interrupt-send#a8aa80064a9bd4f909323920cf6a2474f452e51b

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
Source