Files
deepseek-harness/packages/client/ui-question/README.zh.md
T
imccyu 9be6419cec docs: regenerate catalogs and re-pair bilingual READMEs
Regenerate the cordis/config/persistence catalogs and the module graph for
the ui-plan package and the plan projection unit; add the ui-plan Chinese
README and the Model Experience indirect sentence (allowlisted: the control
dispatches /plan lines, dsh-plan-mode owns the model surface); carry the
QuestionComposer Markdown/scroll improvements into the Chinese ui-question
README; re-record the three touched translation pairs.
2026-07-28 21:46:48 +08:00

1.9 KiB

@deepseek-ai/dsh-client-ui-question

English | 中文

Web ask_user_question 功能插件。只有选择 Web 功能时,其主机侧才会挂载 dsh-tool-ask-user;浏览器侧会把 question 配置项注册到会话拥有的 conversation.composer 键控 slot 中。

组件每次渲染一个问题,提供进度导航、单选和多选选项、由标签后缀派生的推荐徽标,以及自定义答案。问题详情复用助手输出的 MarkdownText 原语,包括其 GFM 渲染与不受信内容策略。封顶卡片保持标题、导航与提交动作固定,超长的详情与选项共享内部滚动区。单选选项会立即前进;所有问题均已回答或跳过后,Enter 会提交;IME 输入法组合期间按 Enter 只会确认输入候选,不会前进。组件为整个请求提交一批结构化答案:「跳过此问题」会保留其他草稿,并为该项发出既有的空 { selected: [] } 形状;关闭则以 ASK_CANCELLED 拒绝整个等待。

选择状态只存在于以请求 rpcId 为 key 的组件本地。使用相同 id 回放时,只要组件仍挂载,就会保留草稿;主机发出的 question/resolved 则会移除编辑器。主机仍具有最终决定权:HTTP 交付成功不会在本地移除待处理状态。

模型体验

通过 dsh-tool-ask-user 间接影响;该包拥有模型可见的工具 schema 和结构化结果。

KV Cache 影响

不会直接失效;模型可见的工具调用与结果由 dsh-tool-ask-user 拥有。

已知限制与暂缓事项

  • 未提交的草稿不持久:重新连接再同步或完整刷新页面时,会恢复主机拥有且 rpcId 相同的待处理请求,但编辑器卸载会重置本地选项和自定义文本草稿。
  • 每次只有一个请求拥有编辑器:后续待处理请求仍留在会话快照中,并在较早请求解决后显示。