Preface¶
When handling assistant replies or tool outputs in DSH, if you need to make separate follow-up requests for multiple pieces of text at once, it’s easy to end up piling multiple quoted passages into the input box, making the main input field longer. dsh-multi-selection-comments provides a Codex-like experience: continuously select multiple pieces of text, fill in separate requirements for each, while keeping the main input box clean and concise.
What This Is¶
This is a DSH client plugin maintained by yuanc1204, hosted in the repository yuanc1204/dsh-multi-selection-comments, with a package.json version of 0.4.3 and an MIT license.
The problem it solves: it lets users continuously select multiple pieces of text in DSH assistant replies or tool outputs, add separate follow-up requirements for each piece, and submit them as a set of structured context along with the main message when sending.
Core Features¶
- Supports continuously selecting multiple pieces of text in assistant replies or tool outputs, with each “selected text + your requirement” being independent of the others.
- Only a compact “N selected items” pill is displayed above the main input box, instead of stacking multiple quoted passages.
- Click the pill to view all selected content and delete items one by one; click outside the popup to collapse the details.
- In the requirement input box, press
Enterto send directly to the conversation, andCtrl+Enterto insert a newline. - “Your requirement” is optional — you can quote selected content without filling in a requirement.
- Even if the main input box is empty, you can send directly as long as there is selected content.
- The requirements are injected as structured context into the message only at send time, while the main message remains editable as usual.
- Sent chat history is displayed as right-aligned pills, without directly exposing the structured XML.
- The plugin does not falsely trigger in user messages, input boxes, editable areas, or steering messages.
- Chinese and English UI text follows the DSH page language.
Installation and Activation¶
Prerequisites: Node.js, npm, and a properly running DSH.
Run the following in Windows PowerShell:
git clone https://github.com/yuanc1204/dsh-multi-selection-comments.git
cd dsh-multi-selection-comments
powershell -ExecutionPolicy Bypass -File .\install.ps1
If the page still shows the old version, force refresh the browser cache.
When upgrading from the older dsh-plugin-quote-to-chat, first uninstall the old plugin in the DSH plugin manager, then install this repository, to avoid loading both client modules simultaneously.
Typical Usage¶
-
Select a piece of text in an assistant reply or tool output.
-
Enter your follow-up requirement for the AI in the “Your requirement” field of the popup, then click “Add to conversation”.
-
Repeat for other pieces of text; a pill showing the number of selected items will appear above the input box.
-
Fill in your main message in the input box and send.
Use Cases and Notes¶
Suitable for scenarios in DSH where you need to annotate assistant replies or tool outputs piece by piece and submit separate follow-up requirements.
This plugin uses the conversation.input.dock slot of DSH Web and relies on the data-conversation-scroll and data-chat-flow-kind markers on the conversation DOM; type-checking has been performed using the DSH 0.1.0-rc.6 client package.
The plugin runs with the permissions of the current dsh process; it is recommended to review the source code and MIT license before installation.
Links¶
- GitHub: https://github.com/yuanc1204/dsh-multi-selection-comments
- Directory page: the verified materials do not explicitly provide a directory page URL.