Skip to main content
W

dsh-quick-reply

wuxiaomuer/dsh-quick-reply

Adds a row of quick reply chips above the composer, inserting a chip's text at the caret, with in-place add, delete and reset kept in localStorage.

Install

dsh plugin --profile web add github:wuxiaomuer/dsh-quick-reply

README

简体中文 | English

dsh-quick-reply icon

dsh-quick-reply

One-click quick replies above the composer for DeepSeek Harness.

Click a chip and its text lands at your caret. No popup, no mode switch.

DeepSeek Harness License: GPL-3.0-or-later Cordis no dependencies

Quick reply chips above the composer

Six chips, wrapped onto a second row, with the + after the last one. Only the composer area is shown.


What it does

A row of chips appears directly above the message composer. Clicking a chip inserts its text into the current draft at the caret — prefixed with a space when the draft does not already end in whitespace, so consecutive picks read as separate sentences.

Each chip carries a × that removes that entry. A dashed + at the end of the row opens an inline editor.

ControlEffect
Use current draftCopies whatever is in the composer into the input
SaveAppends the input as a new chip, then clears the input
Reset to defaultsReplaces the whole set with the five built-in entries
DoneCloses the editor

Enter saves and clears for the next entry; Escape closes the editor.

The inline editor

The editor row: text input, Use current draft, Save, Reset to defaults, Done.

Chips wrap onto a second row instead of scrolling out of view, so a long set stays reachable, and the + always sits right after the last chip.

StoragelocalStorage, key dsh.quick-reply.items — survives reload, per browser profile, not per session
Default entries继续 · 展开说明一下 · 把上面的内容总结成要点 · 检查一下刚才的改动有没有问题 · 给这部分补上测试
ThemeFollows the host; light and dark both inherit
Languageszh + en, all text through ctx.locale

Install

dsh plugin add @wuxiaomuer/dsh-quick-reply

Or point the Harness plugin manager at this repository directly.

How it works

The plugin registers one entry in the conversation.input.dock slot (id quick-reply, order 5), which @deepseek-ai/dsh-client-ui-conversation renders above the composer card.

Insertion goes through the composer's own inputActions.captureInsertion() / insertText(span, text) pair, so the write lands in the lexical editor the host owns rather than being pasted into the DOM. That is what keeps the caret, undo history and inline @// tokens coherent — a contenteditable write would not. inputActions.setDraft() is the fallback for hosts where that pair is unavailable.

A 400 ms guard drops a repeated click on the same chip, because the composer re-renders between the click and the commit and would otherwise insert twice.

Styling uses only --dsw-alias-* theme tokens. Nothing is written outside the plugin's own component, and nothing is appended to document.body.

No Host-side behaviour, no network calls, no credentials, no telemetry.

Layout

index.js            Host half: export function apply() {}
client.js           Browser half: slot registration, chips, insertion, storage
cordis.patch.yml    Bundle patch inserting the plugin row
locale/zh.json      Plugin-manager title and description (Chinese)
locale/en.json      Plugin-manager title and description (English)
icon.svg            Plugin icon used by the Harness plugin page
assets/             Raster tile and screenshots for storefronts
screenshots.json    Screenshot manifest read by dsh-market

Compatibility

HarnessWeb UI, @deepseek-ai/dsh-client-ui-conversation present
Runtime depsnone
Host halfempty — the whole plugin is browser-side

License

GPL-3.0-or-later. See LICENSE.

Related plugins