跳过主要内容
S

dsh-quote-side-chat

sleepray/dsh-quote-side-chat

把选中的文字引用到输入框上方的托盘,每条引用下面各带一个回复框,最后把全部引用与回复合成一条消息发出,并附一个在主对话执行期间仍能继续提问的侧聊。其 HTTP 路由未做 DSH 权限校验,浏览器中打开的任意网页都可能直接调用。

安装

dsh plugin --profile web add github:sleepray/dsh-quote-side-chat

README

dsh-quote-side-chat

中文说明见 README.zh.md

Quote text from a conversation into a tray above the composer, reply to each quote inline, and send them all in one message — while a side chat keeps working next to the main turn.

在对话里选中文字 → 引用到输入框上方的托盘 → 每条引用下面写一句回复(可留空) → ⌘↵ 把「引用 + 各自回复 + 你打的字」作为一条消息发出。 主对话在跑的时候,旁边还能开一个侧聊继续问,结论可以再引回托盘。

overview

Features

  • Quote tray above the composer. Select text, press ⌘⇧C (or the floating button). Quotes stack up; each one keeps its own reply box.
  • Send together. One send delivers every quote plus its inline reply plus the text already in the composer, as a single user message.
  • Empty reply is fine. A quote without a reply is pure context.
  • Side chat that does not block. A small panel keeps its own hidden session so you can ask something else while the main turn is still running; any answer can be quoted back into the tray.
  • Theme native. Colors come from --dsw-alias-* tokens; light and dark both work.

quotes

Install

From a checkout:

dsh plugin install /absolute/path/to/dsh-quote-side-chat

Or from npm once published:

dsh plugin install dsh-quote-side-chat

Then open Plugins, confirm the row is enabled, and start a new session.

Usage

ActionHow
Quote the selectionSelect text → 引用到主对话, or ⌘⇧C
Reply to one quoteType in the box under that quote
Move between reply boxesTab
Send everything⌘↵ or 一起发送, with your message typed in the normal composer
Ask in the side chatSelect text → 在侧聊里问
Quote the side-chat answer back引用到主对话 in the side panel

How sending works

The tray composes quote → reply blocks and posts them to the plugin's host route, which delivers one user message to the live agent of the current conversation. If that path is unavailable, the same composed text is written into the composer draft instead, so nothing is lost.

Limitations (v0.1)

  • The side chat is a floating panel owned by the plugin; it has no model or permission picker yet and inherits the parent conversation's model.
  • Side sessions are archived so they stay out of the session list; a turn is briefly un-archived while it runs.
  • Sending relies on agent.followup(); if the conversation is mid-turn the message queues behind the running turn.

side chat

License

MIT

相关插件