Plan mode is entered through /plan only — the select control is retired. The conversation.input.plan seat (now right of the access-mode control) renders a read-only Plan chip while the projection's effective target is plan mode; its hover x executes /plan off, and the chip follows the folded target (appears on /plan immediately, disappears on /plan off) with frames correcting either way. While plan mode is targeted the composer textarea's placeholder switches to the plan-task wording — InputBar reads the same projection through the standard-kit useProjection (the TodoDock posture: a type-only key merge, no domain service edge), and owner placeholders still win.
2.3 KiB
@deepseek-ai/dsh-client-ui-plan
English | 中文
Plan mode 状态徽章,纯浏览器 surface 插件。浏览器侧占据会话声明的 conversation.input.plan 单座(位于 access 模式控件右侧);node 侧是空 apply(roster 行)。plan 行为本身——/plan 命令、边界或空闲即时提交的 plan/mode 状态、plan 投影单元与 policy 段——归 @deepseek-ai/dsh-plan-mode 所有,由 host roster 独立组合。
plan mode 只经 /plan 命令进入;UI 上没有打开它的控件。当 host 计算的 plan 投影有效目标为 plan mode 时(pending ? !active : active——折叠的 host 值而非客户端乐观态,帧到达即自动纠正),座位渲染一个只读 "Plan" chip,hover 出现的 × 经 command.execute 执行 /plan off;否则座位保持为空——未组合 plan-mode 的 host(或尚无会话的 Draft)不显示任何内容。plan mode 为有效目标期间,composer 文本框的 placeholder 切换为 "describe your task to generate plan"(由 composer 从同一投影渲染;owner 提供的 placeholder 优先)。
chip 携带无障碍描述 "Plan mode on, press to turn off"。准入失败(matched: false、业务错误、传输故障)以内联错误呈现,chip 保持显示直至投影确认退出。
模型通过稳定的 exit_plan_mode 工具退出 plan mode;其 plan 评审走已组合的 Web question 通道。
模型体验
间接地,通过 chip 派发的 /plan off 命令行:@deepseek-ai/dsh-plan-mode 拥有该命令行驱动的模型可见 policy 段、退出工具 schema 与已记录状态,本包只渲染投影并发送用户同样可以手敲的内容。
KV 缓存效应
进入或离开 plan mode 会改变活跃的 plan:policy 系统提示词段,因此改变请求前缀;chip 本身不添加任何提示词内容。
已知局限与延后工作
- Plan mode 是引导而非执行沙箱——需要强制只读规划的部署必须组合独立的沙箱与审批策略。
- chip 属于默认编辑器——待处理的整编辑器交互(如 plan 评审)会临时取代 InputBar 及其 chip。
- 无 UI 进入点——plan mode 靠敲
/plan进入;有能力但未激活的会话在工具行不显示任何入口。