From 908db10904f6b09cef92e763aabbf5b49e061443 Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Wed, 4 Nov 2026 22:22:05 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=AE=B0=E5=BD=95=200.2.2=20=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E5=88=87=E6=8D=A2=E5=8E=BB=E9=87=8D=E7=9A=84=E9=82=A3?= =?UTF-8?q?=E4=B8=80=E7=AC=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/plans/2026-11-04-dsh-0.2.2-rc.1-adaptation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/plans/2026-11-04-dsh-0.2.2-rc.1-adaptation.md b/docs/plans/2026-11-04-dsh-0.2.2-rc.1-adaptation.md index 61e4e6aa..65ba8d3a 100644 --- a/docs/plans/2026-11-04-dsh-0.2.2-rc.1-adaptation.md +++ b/docs/plans/2026-11-04-dsh-0.2.2-rc.1-adaptation.md @@ -20,7 +20,8 @@ 1. **模型选择换成了 agent 自有的 `AgentModel`**(`@deepseek-ai/dsh-agent`) - 0.2.1:`ModelSelectionRef`(`{ current, assembled }`,可变)+ `installModelSelection(ctx, ref)` 把它装成 prompt / request 瀑布。 - 0.2.2:`Agent` 新增只读 `agent.model: Model`,`select(selection)` **同时** 落盘 `model/selection` 并作用于下一步;`installModelSelection(ctx)` 只剩安装投影服务、返回 disposer。`ModelSelectionRef` 类型已不存在(`dsh-agent/lib/types/model-selection.d.ts`)。 - - 改法([src/sidechat-routes.ts](../src/sidechat-routes.ts)):`ensureModelSelection` 返回 `Agent['model']`,首次认领时用线程日志里的选择 seed 一次,之后 `sidechat.model` 直接 `select()`;不再 install,也不再持有自建 ref。 + - 改法([src/sidechat-routes.ts](../src/sidechat-routes.ts)):`ensureModelSelection` 返回 `Agent['model']`,首次认领时用线程日志里的选择 seed 一次(`select()` 对同一选择是 no-op,不会重复落盘),之后 `sidechat.model` 直接 `select()`;不再 install,也不再持有自建 ref。 + - **合入后补的一笔**:0.2.1 需要"append `model/selection` + 改 ref"两个动作,0.2.2 的 `select()` 已经把落盘包含在内——两处都留会把每次切换记成**两条**事件。已删掉显式 append,测试改为断言 `select` 收到选择且 `session.append` 未被调用(`7ef1dfa9`)。 2. **PTC 事件类型声明被移除**(`@deepseek-ai/dsh-tools`) - 0.2.2 的 `dsh-tools` 产物里 **0 处** `tool/ptc-dispatch*`;`SessionStore.append` 因为没有登记项直接抛 `Cannot read properties of undefined (reading 'publicationEntry')`。