DSH Plugin: Editing ask_user_question Option Cards Before Submission

Introduction

In DeepSeek Harness (DSH), ask_user_question is commonly used to let an agent present the user with multiple-choice questions. The native option cards only support “pick one” or “write a custom answer.” When the closest option just needs a slight tweak, the user has to compose an entirely separate description, and the model cannot see the relationship between the base option and the adjustment. This plugin takes over the composer for ask_user_question, enabling every option to be edited before submission.

What It Is

dsh-editable-question-options is a DSH Web client plugin maintained by CarviS0302. It transforms the native multiple-choice card into an editable interface: first select the closest option, then modify its label and details in place. After saving, the option is marked as selected and displays an “Edited” badge. Upon submission, the model receives both the original option and the modification notes.

Core Features

  • Takes over the composer for ask_user_question, applying only to general questions that provide options.
  • Adds a pencil icon to the right of each option; clicking it opens an inline editor where the option label and optional detail text can be modified.
  • After saving, the option is selected and an “Edited” badge appears on the card.
  • On submission, the original option’s label is preserved in the selected field, while the modification notes are written to the question’s custom field, so the model can see both the base choice and the adjustments.
  • Preserves native behaviors: multi-question pagination, multi-select, free-text input, skip, countdown (Take time), panel collapse, and post-timeout resubmission.
  • Yields to the native UI for plan-approval cards, already-answered read-only cards, and questions without options.
  • Provides an error-boundary fallback on render failure, with options to skip or collapse the panel, preventing the agent from getting stuck indefinitely.

Installation & Activation

The plugin requires a DSH Web/Desktop build that includes the conversation.composer chain. Verified on DSH 0.2.1-rc.3 and 0.2.2-rc.5.

Install from npm:

dsh plugin --profile <profile> add dsh-editable-question-options

Install from GitHub (the repository is pure JavaScript, no build step required):

dsh plugin --profile <profile> add github:CarviS0302/dsh-editable-question-options

Pin a specific version:

dsh plugin --profile <profile> add github:CarviS0302/dsh-editable-question-options#v1.0.1

Typical Usage

  1. Wait for the agent to pop up a question with options.
  2. Click the pencil icon on the right side of the closest option.
  3. Modify the option’s name and (if needed) its details, then save the changes.
  4. The option becomes selected and marked “Edited”; submit the answer as usual.

Example answer structure after submission (using the Chinese UI as reference):

{
  "answers": [
    {
      "id": "question-id",
      "selected": ["Option B"],
      "custom": "Option \"Option B\" 已编辑为:Option B+ stable-first,使用端口 8080(基于 Option B,修改服务端口)"
    }
  ]
}

Use Cases & Caveats

Well-suited for developers who need to fine-tune option content: when an option is close but needs a minor adjustment, you can do it directly on the card instead of writing a long separate description.

  • Review the source code and license (MIT) before installing.
  • The plugin declares engines.dsh: >=0.2.1-rc.3 <0.3.0-0; it is recommended for use within the 0.2.x series.
  • Do not install dsh-question-note or dsh-better-choice alongside this plugin. All three take over conversation.composer with a priority of -10 and will override this plugin’s behavior.
  • Unsaved edits are only valid within the current component instance and will be lost after a page refresh; the question itself can still be reopened from the tool-call row.
  • question.detail is rendered as plain text; Markdown is not rendered.
  • Currently only Simplified Chinese and English UI strings are registered.

In Short

By allowing developers to edit option cards before submission, the model can more accurately understand both the user’s selection and the intent behind the adjustments. Directory listing and source code links:

  • https://www.skillhub.cn/plugins/CarviS0302/dsh-editable-question-options
  • https://github.com/CarviS0302/dsh-editable-question-options
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye