Hyna-hla/dsh-interrupt-send ↗★ 0
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).
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Hyna-hla/dsh-interrupt-send说明文档
阅读完整 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}。
构建安装
pnpm install
pnpm build
.\scripts\install-to-profile.ps1 -Name dsh-interrupt-send -SourceDir .
# 重启 DeepSeek Harness