dsh-taskbridge 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.0 — 静默等待、重复失败提醒与宿主审查闭环
4
+
5
+ - **长等待与集中审查。** Codex companion、MCP 说明和文档统一要求正常调用 `delegate_wait({ taskId })` 时省略短 `waitSeconds`。外层工具允许长 yield 时保持同一次等待;提前返回仍运行的单元则续接同一个单元,不重复派工、不反复读取中间代码。执行期间由程序观察,交付后由指挥端集中审查,需要修正时续接原任务。
6
+ - **澄清无活动监控。** 保留默认连续 5 分钟无活动时程序自检、10 分钟时请求指挥端判断。真实输出、思考和工具事件重新计时;心跳和页面刷新不重置。等待结束不代表执行结束,提醒不自动取消、重派、换模型或延长时限。
7
+ - **新增重复失败提醒。** `monitoring.repeatFailureThreshold` 默认 3,允许 0–20,0 关闭。只对相同工具、相同操作的连续相同结构化失败提醒一次;成功或失败身份变化重新计数。审批和任务结局优先,原始参数、错误正文和思考内容不进入提醒记录。高级设置、任务详情、历史与公开类型同步支持。
8
+ - **宿主审查写回。** 新增 `delegate_review`,由宿主审查后明确记录 accepted/changes-requested;任务页显示“审查通过”或“需要修正”。保留旧执行状态兼容,执行者不能通过交付自动验收,旧记录不补写虚构结论。审查写回不授予权限、不合并工作树、不修改执行路由。
9
+ - **阶段和兼容修复。** 执行尚未开始时保留 before-create,失败后同步失败阶段;晚到事件不覆盖审批或终态。补齐已发布 1.3.2 Codex 模板的精确识别和启动刷新;保留自定义智能体。旧监控配置及历史字段兼容,修复表单校验与保存时丢失其他草稿的问题。
10
+ - **验证与测量口径。** 当前客户端已完成真实墙钟 20 分 2 秒的模拟活动等待,中途零 GPT 续等;它不是提供方连续执行 20 分钟的任务。另做同聊天、同模型、每组约 45 秒的实际用量对照,等待阶段输入加输出从 507,885 降至 169,734 token,样本减少 66.58%。不将该比例宣传为完整任务、账单或所有客户端的固定节省。
11
+ - 本版未新增 CLI 执行通道或 Claude Code 一键安装。更新方法和验证边界见 `docs/releases/1.4.0.zh.md`,测量方法见 `docs/releases/1.4.0-token-benchmark.zh.md`。
12
+
13
+ ## 1.3.2 — TaskBridge companion and descriptive task workspace names
14
+
15
+ - Rename the shipped Codex companion to `dsh-taskbridge` (`agents/dsh-taskbridge.toml`). Install and startup migrate an unchanged, recognized published `dsh-delegate.toml` and remove the old managed file; edited agent files remain operator-owned. Add TaskBridge CLI aliases while retaining the existing binaries and internal MCP identifiers.
16
+ - Add an optional `title` to `delegate_submit` and carry it through HTTP, the job engine and the native Workspace controller. Newly created Workspaces use a short description of the work rather than the worktree's `task-UUID` directory name. Older callers derive a title from the prompt's goal. Follow-ups and existing Workspaces keep their titles; duplicate titles receive a short suffix. No additional model call is made for naming.
17
+ - Explicit Codex install/repair can migrate a marked legacy MCP entry after the old package was uninstalled, when its missing package path is a known sibling of the current `dsh-taskbridge` installation. Custom wrappers, unrelated paths and automatic startup path adoption remain excluded.
18
+ - Update the settings page, companion dispatch rules and upgrade instructions. Model selection, delegation authorization, quiet waiting and host review retain their existing behavior.
19
+
20
+ - Make loopback HTTP test fixtures avoid Fetch-blocked ports, which Windows can allocate from a customized low dynamic-port range. This only affects tests.
21
+
3
22
  ## 1.3.1 — DSH TaskBridge identity and npm distribution
4
23
 
5
24
  - Unify the project, GitHub repository, plugin title, package and bundle identity as **DSH TaskBridge** / `dsh-taskbridge`. The previous GitHub-only `dsh-taskdispatch` name was rejected by npm's similarity protection; it never became an npm package.
package/README.md CHANGED
@@ -5,9 +5,10 @@
5
5
  你向指挥端提出目标;指挥端规划、拆分、派工和审查,DSH 根据插件设置执行。插件可选择 DSH 已接入的 API 提供方、执行模型及其支持的思考强度,并配置超时、并发与工作区隔离;额外模型审查可单独开关和配置。任务交付后集中审查,需要改进时续接同一任务对话。
6
6
 
7
7
  - [详细中文介绍](docs/INTRODUCTION.zh.md) · [English introduction](docs/INTRODUCTION.md)
8
- - [从 DSH Delegate/TaskDispatch 迁移到 1.3.1](docs/taskbridge-upgrade.md):新包名为 `dsh-taskbridge`,保留旧数据和 MCP 技术标识,不要同时启用新旧插件。
8
+ - [从 DSH Delegate/TaskDispatch 迁移到 TaskBridge](docs/taskbridge-upgrade.md):包名为 `dsh-taskbridge`,保留旧数据和 MCP 技术标识,不要同时启用新旧插件。
9
9
  - [在 DSH“发现”中搜索和安装](docs/plugin-market.md):添加本项目的自定义索引,安装源固定到本项目的 Git 提交。
10
10
  - [Claude Code 手动 MCP 接入](docs/claude-code.md);Codex 继续使用设置页的安装/修复按钮。Claude Code 的一键安装按钮和真实客户端验收尚未完成。
11
+ - [1.4.0 更新说明](docs/releases/1.4.0.zh.md):长等待规则、重复失败提醒和宿主审查结果写回;[等待阶段 token 测量](docs/releases/1.4.0-token-benchmark.zh.md)说明短时样本的 66.58% 降幅及适用边界。历史 [1.3.2 更新说明](docs/releases/1.3.2.zh.md)保留。
11
12
 
12
13
  DeepSeek Harness(DSH)的委托插件:让 MCP 宿主在你开启本机总开关后,调用 DSH
13
14
  已配置的接口执行任务,执行结果回到宿主(例如 Codex)自行验收。
@@ -15,7 +16,7 @@ DeepSeek Harness(DSH)的委托插件:让 MCP 宿主在你开启本机总
15
16
  新安装时本机调用总开关默认关闭。开关状态会保存在插件设置中,重启后恢复保存值;
16
17
  关闭时拒绝新的委派任务,并请求停止正在运行的任务。
17
18
 
18
- > **发布版本:`1.3.1`(TaskBridge 更名与 npm 发行版)。** 源码仓库和可下载的 Release
19
+ > **发布版本:`1.4.0`(静默等待、重复失败提醒与审查状态闭环)。** 源码仓库和可下载的 Release
19
20
  > 位于 [GitHub](https://github.com/ranranyya/dsh-taskbridge)。npm 安装标识为 **`dsh-taskbridge`**,
20
21
  > GitHub Release 同时提供 `.tgz`。`1.1.0` 的静默等待说明见
21
22
  > [`docs/silent-wait.md`](./docs/silent-wait.md);`1.2.0` 修正了其中三处真实问题(等待中断的
@@ -46,13 +47,13 @@ profile 是**应用保留的**:npm / `dsh plugin` CLI 对该 profile 的操作
46
47
  Desktop 侧的包操作只能交给应用完成——不要在 Desktop 的正式 profile 里执行 npm/pnpm
47
48
  命令,也不要直接编辑其中的文件。
48
49
 
49
- 1. 打开 Desktop 的 **Plugins manager → 添加插件**,输入 **`dsh-taskbridge@1.3.1`**。
50
+ 1. 打开 Desktop 的 **Plugins manager → 添加插件**,输入 **`dsh-taskbridge@1.4.0`**。
50
51
  若中国大陆镜像尚未同步,先选择 npm 官方源再重试。安装后的显示名为 **DSH TaskBridge**。
51
52
  也可以从本项目 Release 下载 `.tgz`,或在仓库根目录打包:
52
53
 
53
54
  ```bash
54
55
  npm pack
55
- # → dsh-taskbridge-1.3.1.tgz
56
+ # → dsh-taskbridge-1.4.0.tgz
56
57
  ```
57
58
 
58
59
  2. 使用本地包时,通过 **添加插件**入口选择下载或生成的 `.tgz`(或本仓库目录)完成安装。
@@ -66,7 +67,7 @@ Desktop 侧的包操作只能交给应用完成——不要在 Desktop 的正式
66
67
 
67
68
  ```bash
68
69
  # 装进一个 profile(例:web)
69
- dsh plugin --profile web add ./dsh-taskbridge-1.3.1.tgz && dsh plugin --profile web why dsh-taskbridge
70
+ dsh plugin --profile web add ./dsh-taskbridge-1.4.0.tgz && dsh plugin --profile web why dsh-taskbridge
70
71
 
71
72
  # 启动(首次启动会自动把插件 bundle 追加到 dsh.profile.bundles)
72
73
  dsh --profile web
@@ -79,7 +80,7 @@ dsh --profile web
79
80
  ### 说明与注意
80
81
 
81
82
  - **不要装进你正在用的正式 profile 做试验。** 建议先用一次性 profile:
82
- `dsh plugin --profile dsh-delegate-try add ./dsh-taskbridge-1.3.1.tgz`,再把
83
+ `dsh plugin --profile dsh-delegate-try add ./dsh-taskbridge-1.4.0.tgz`,再把
83
84
  `DSH_HOME` 指向临时目录做隔离验证。该命令同样只用于 CLI profile。
84
85
  - 该包声明了 `@deepseek-ai/dsh-*` 的 peer,若你的包管理器默认自动安装 peer,
85
86
  安装过程会尝试解析这些版本。可显式关闭:`npm_config_auto_install_peers=false`
@@ -123,6 +124,8 @@ dsh --profile web
123
124
  `continueFromTaskId` 的**跟进任务**才会续接那一条任务会话(同 Workspace、同 Session)。
124
125
  详见 `docs/conversation-placement.md`。
125
126
 
127
+ **工作区按内容命名。** 派工时通过 `delegate_submit.title` 提供简短任务名称,例如“制作潘德 G 版装备表”。新建的 DSH Workspace 使用这个名称;旧客户端未提供标题时从任务目标中提取,不会额外调用模型。名称重合时追加短标识。续接任务及已有 Workspace 保持原名称,磁盘中的工作树路径仍使用任务 ID。
128
+
126
129
  ## 4. 本机调用开关
127
130
 
128
131
  - 新安装默认关闭;安装、提示词内容和模型调用都不会自动开启它。
@@ -143,14 +146,18 @@ dsh --profile web
143
146
 
144
147
  ## 6. MCP(stdio)接入
145
148
 
146
- 包内可执行文件 `bin/dsh-delegate-mcp.js`(bin 名 `dsh-delegate-mcp`)实现了七个工具:
149
+ 包内可执行文件 `bin/dsh-delegate-mcp.js`(bin 名 `dsh-delegate-mcp`)实现了八个工具:
147
150
  `delegate_status` / `delegate_preflight` / `delegate_submit` / `delegate_wait` / `delegate_result` / `delegate_cancel` /
148
- `delegate_permission_decide`。
151
+ `delegate_permission_decide` / `delegate_review`。
149
152
  它**不提供**授权、配置写入或凭据读写工具。`delegate_permission_decide` 是唯一一条窄例外:
150
153
  它只能回答一个**已经挂起**的「单次调用授权请求」,给 `allow-once`(仅这一次调用可继续)或
151
154
  `reject`。它不能创建或扩大任何**长期有效**的授权,不能修改设置、凭据、本机开关、提供方/模型或隔离方式,
152
155
  也不能预先批准后续调用。
153
156
 
157
+ `delegate_review` 只记录已交付任务的宿主审查结论。指挥端检查结果和验证证据后,传入
158
+ `decision: "accepted"` 或 `"changes-requested"` 与简短 `note`;任务页显示“审查通过”或“需要修正”。
159
+ 它不会授予工具权限或自动合并文件。旧记录缺少结论时仍保留待审,不把执行完成自动标成通过。
160
+
154
161
  在需要调用委派工具的 MCP 宿主中添加 stdio server(以下为通用配置示意;Codex 用见 6.1,
155
162
  插件会替你写这条并给出正确路径):
156
163
 
@@ -170,8 +177,8 @@ dsh --profile web
170
177
  每次工具调用前都会重新读取,因此 DSH 重启并更换端口后无需改 Codex 配置。
171
178
  - 默认发现路径使用 `DSH_HOME`,未设置时为 `~/.dsh`。若 DSH 和 MCP 宿主使用不同的 DSH_HOME,
172
179
  可通过 `DSH_DELEGATE_DISCOVERY_FILE` 指向该发现文件。`DSH_DELEGATE_BASE_URL` 仅作为手动固定地址覆盖。
173
- - 工具为 `delegate_status`、`delegate_preflight`、`delegate_submit`、`delegate_result`、
174
- `delegate_cancel` 和 `delegate_permission_decide`。
180
+ - 工具为 `delegate_status`、`delegate_preflight`、`delegate_submit`、`delegate_wait`、`delegate_result`、
181
+ `delegate_cancel`、`delegate_permission_decide` 和 `delegate_review`。
175
182
  - 开关关闭时,`delegate_submit` 与 `delegate_permission_decide` 返回 `DELEGATION_DISABLED`;状态、
176
183
  预检、结果和取消工具仍可使用。`delegate_preflight` 只读取工作区事实,不创建任何东西,因此不受
177
184
  开关和并发上限限制。
@@ -229,26 +236,19 @@ dsh --profile web
229
236
 
230
237
  ### 6.1 Codex 集成(设置页一键安装)
231
238
 
232
- Codex 是唯一支持的宿主。**「Codex 集成」**分页提供一个明确的按钮动作:点击一次即可完成
239
+ Codex 支持一键安装集成。**「Codex 集成」**分页提供一个明确的按钮动作:点击一次即可完成
233
240
 
234
- 1. 安装自定义子智能体文件 `CODEX_HOME/agents/dsh-delegate.toml`(未设置 `CODEX_HOME`
235
- 时为 `%USERPROFILE%\.codex\agents\dsh-delegate.toml`);
241
+ 1. 安装自定义子智能体文件 `CODEX_HOME/agents/dsh-taskbridge.toml`(未设置 `CODEX_HOME`
242
+ 时为 `%USERPROFILE%\.codex\agents\dsh-taskbridge.toml`);
236
243
  2. 在 `CODEX_HOME/config.toml` 里登记本包自带的 stdio MCP 服务
237
244
  `mcp_servers.dsh-delegate`,让子智能体可以使用 `delegate_status` /
238
- `delegate_preflight` / `delegate_submit` / `delegate_result` / `delegate_cancel` /
245
+ `delegate_preflight` / `delegate_submit` / `delegate_wait` / `delegate_result` / `delegate_cancel` /
239
246
  `delegate_permission_decide`。
240
247
 
241
248
  需要说明的边界(分页里也有同样的提示):
242
249
 
243
- - **只有点击才会新建,启动只做受限刷新。** 打开分页、安装/升级 `.tgz` 都不会碰 Codex 目录;
244
- 新建 agent、登记或迁移 `config.toml` 条目、移除托管项都只能通过「安装 / 更新 Codex 集成」
245
- 「仅修复 MCP 配置」「移除插件托管项」三个按钮。唯一的例外是**插件启动时的一次受限迁移**:
246
- 只有当 `agents/dsh-delegate.toml` 与某个**已发布版本的模板逐字节相同**(枚举的摘要表)时,
247
- 才会把它刷新为当前版本;比较的是**原始字节**,插件不会把 CRLF 归一化成 LF 再比,也不会改写
248
- 你文件的行尾。已发布版本若同时存在打包的 CRLF 与 LF 文本两种字节形态,摘要表会为两种形态各列
249
- 一条,两条都是精确的已发布身份。它**不会**创建缺失的 agent、不会创建 `agents/` 目录、不会写
250
- `config.toml`,正文被改过或来源不明的文件一律不动。「刷新状态」和分页打开时的读取都只是只读诊断。
251
- - **不覆盖、不删除你写的文件。** 同名但内容不同的 `agents/dsh-delegate.toml` 会被保留,
250
+ - **首次安装由按钮触发,启动刷新已有托管集成。** 点击「安装 / 更新 TaskBridge 智能体」安装智能体和 MCP;「仅修复 MCP 配置」不改智能体。启动时会刷新与已发布模板字节一致的文件,并更新同一安装位置的已托管 MCP 配置。1.3.2 还会把未修改的旧 `agents/dsh-delegate.toml` 迁移成 `agents/dsh-taskbridge.toml`,清除旧文件,避免两个名字同时出现。没有既有托管智能体时,启动不会首次安装;正文被改过或新文件被用户占用时保留用户文件。「刷新状态」和分页打开时的读取只做诊断。
251
+ - **不覆盖、不删除你写的文件。** 同名但内容不同的 `agents/dsh-taskbridge.toml` 会被保留,
252
252
  界面报告为「不属于已知版本」;只有与**某个已发布版本逐字节相同**的托管文件才会被更新或删除,
253
253
  仅版本号变旧、正文被改过一字的文件都不会动。`config.toml` 里由插件写入的条目带托管标记注释;
254
254
  **没有该标记**的同名条目(即使 `command`/`args` 与插件要写的完全一致)同样视为你自己写的,
@@ -283,11 +283,11 @@ Codex 是唯一支持的宿主。**「Codex 集成」**分页提供一个明确
283
283
  - **安装后需要 Codex 重新载入。** 新开会话或重启 Codex 才会读到新的子智能体和 MCP 条目。
284
284
  Codex 官方文档说明了[自定义子智能体](https://learn.chatgpt.com/docs/agent-configuration/subagents)和
285
285
  [MCP 连接](https://learn.chatgpt.com/docs/extend/mcp?surface=cli);这些文档支持 agent 配置与
286
- MCP 继承,但**没有**说明当前 Codex 桌面版/CLI 的输入框支持用 `@dsh-delegate` 选中该子智能体。
286
+ MCP 继承,但**没有**说明当前 Codex 桌面版/CLI 的输入框支持用 `@dsh-taskbridge` 选中该子智能体。
287
287
  本插件因此**不宣称**任何 Codex 界面支持这种 `@` 直接调用,只保证子智能体文件与 MCP 工具存在,
288
288
  由你通过 Codex 自身提供的选择方式指派它。
289
- - **触发规则写死在 agent 文件里**(见 `codex/dsh-delegate.toml`):只有在父请求明确指派
290
- (例如写出 `@dsh-delegate`、从智能体列表中选择它,或明确要求把该实现任务交给 DSH)时才派发;
289
+ - **触发规则写死在 agent 文件里**(见 `codex/dsh-taskbridge.toml`):只有在父请求明确指派
290
+ (例如写出 `@dsh-taskbridge`、从智能体列表中选择它,或明确要求把该实现任务交给 DSH)时才派发;
291
291
  仅仅在无关问题里提到 DSH / DeepSeek / 本插件**不是**派发请求。派发前先调用
292
292
  `delegate_status` 检查开关,再调用 `delegate_preflight` 读取工作区事实:干净仓库按插件设置里
293
293
  的 **worktree** 隔离派发;**脏仓库不会被自动降级**,指挥官根据任务和变更路径判断能否安全共享,
@@ -313,8 +313,8 @@ node bin/dsh-delegate-codex-agent.js remove # 只删除插件托管项
313
313
  退出码:`0` 完成,`2` 因冲突/拒绝而未改动,`1` 失败。
314
314
 
315
315
  已安装的托管 MCP 条目会在插件启动时**自动**原地补齐缺失的 `tool_timeout_sec`(入口脚本正好是
316
- 本安装时)。入口路径已经指向旧安装的条目不会被启动自检改写:请用「安装 / 更新 Codex 集成」或
317
- 「仅修复 MCP 配置」显式采纳,只有在证明旧路径是同一包的真实安装后才会改写。显式按钮仍然是
316
+ 本安装时)。入口路径已经指向旧安装的条目不会被启动自检改写:请用「安装 / 更新 TaskBridge 智能体」或
317
+ 「仅修复 MCP 配置」显式采纳;仍存在的旧包须证明身份,已卸载的同级旧包按 1.3.2 的标准路径规则迁移。显式按钮仍然是
318
318
  未安装时唯一会创建条目的动作。
319
319
 
320
320
  ## 7. 凭据隔离
@@ -348,10 +348,10 @@ node bin/dsh-delegate-codex-agent.js remove # 只删除插件托管项
348
348
  运行时走旧路径;读回失败在任何路径上都是投递提示词之前的严格失败,不会以“未声明的路线”运行。
349
349
  细节与逐版本对照见 [`docs/runtime-compatibility.md`](./docs/runtime-compatibility.md)。
350
350
  - 续接的会话身份规则见第 6 节(同一已验证 `connectionId`、重启后与持久 history 互证)。这条
351
- 能力在本轮候选构建里实现,验收由 Codex 另行出报告;本文件**不声称** DSH Desktop 真实安装
351
+ 能力已包含在插件中;本文件**不声称** DSH Desktop 真实安装
352
352
  已通过,也不声称做过真实攻击复现。
353
- - 其余未完成项:DSH Desktop 正式版本上的真实安装验收尚未完成;`0.2.2-rc.1` 上的插件全量加载
354
- 与真实模型执行也尚未完成。不要把它们当作已验证。
353
+ - DSH Desktop 正式版本上的真实安装与真实模型执行验收尚未完成;`0.2.2-rc.1` 的原生全量加载
354
+ 已在隔离夹具通过,具体范围见运行时兼容文档,不能等同于生产环境端到端验收。
355
355
 
356
356
  详见 `docs/worker-permissions.md`。
357
357
 
@@ -418,7 +418,7 @@ Codex 子智能体现在按「提交 → `delegate_wait` 同一任务」运作
418
418
  60 分钟的等待跑完;客户端如果应用自己的默认工具超时(Codex 的历史默认是一分钟),仍可能提前
419
419
  结束等待,这是插件不能解除的客户端限制。
420
420
 
421
- 升级后的操作:设置页 → Codex 集成 → **安装 / 更新 Codex 集成**,然后让 Codex 重新载入
421
+ 升级后的操作:设置页 → Codex 集成 → **安装 / 更新 TaskBridge 智能体**,然后让 Codex 重新载入
422
422
  (新开会话或重启)。
423
423
 
424
424
  完整说明见 [`docs/silent-wait.md`](./docs/silent-wait.md)。
@@ -487,7 +487,7 @@ Codex 子智能体现在按「提交 → `delegate_wait` 同一任务」运作
487
487
  command 是本包的 Node 命令、`args[0]` 正好是本安装的 `dsh-delegate-mcp.js`)**且**缺
488
488
  `tool_timeout_sec` 的条目,才会在原地补齐。入口路径已经指向旧安装的条目只会被报告为
489
489
  `conflict`,启动不会替操作者改路径。
490
- - 「安装 / 更新 Codex 集成」或「仅修复 MCP 配置」是唯一会采纳旧路径的入口:它要求旧路径是
490
+ - 「安装 / 更新 TaskBridge 智能体」或「仅修复 MCP 配置」是唯一会采纳旧路径的入口:它要求旧路径是
491
491
  真实安装(真实的 root/bin/入口文件,`package.json` 的 `name` 是本包且
492
492
  `bin["dsh-delegate-mcp"]` 映射到该入口),并在写入前重查当前 config 指纹、边界和条目所有权;
493
493
  期间有任何改动就拒绝。
@@ -498,23 +498,24 @@ Codex 子智能体现在按「提交 → `delegate_wait` 同一任务」运作
498
498
  不是目录都拒绝升级,缺失层级逐级创建并复核,绝不沿链接把完整 config 写出去。
499
499
  - 已发布的 `1.1.0` 子智能体文件(CRLF 与 LF 两种字节形态)已加入精确识别列表,所以旧
500
500
  agent 能安全升级;`1.1.0` 之前、正文已变的历史版本按各自已发布的精确摘要识别。
501
- - 设置页保留显式「安装 / 更新 Codex 集成」按钮,并显示 `outdated` 的**具体漂移项**与说明。
501
+ - 设置页保留显式「安装 / 更新 TaskBridge 智能体」按钮,并显示 `outdated` 的**具体漂移项**与说明。
502
502
 
503
- ### 本版本没有做什么
503
+ ### 1.2.0 当时未覆盖的验收
504
504
 
505
505
  - 没有再次执行 DSH Desktop 正式 profile 上的端到端真实模型运行,也没有实测宿主串行时控制通道的
506
506
  现场行为(自动测试用的是本机 mock 执行面与真实 stdio 夹具,不依赖真实模型)。
507
- - 不提交、不推送、不发布;npm 仍未作为安装渠道。
507
+ - 上述是 1.2.0 的历史验收边界。当前 1.3.1 已发布到 GitHub 和 npm;分发核验结果见
508
+ [发布报告](docs/releases/1.3.1.zh.md),不代表额外完成了真实模型或 Desktop 客户端验收。
508
509
 
509
510
  ## 8. 升级 / 导出 / 卸载 / 回滚
510
511
 
511
512
  ```bash
512
513
  # Desktop:在 Plugins manager 里对已安装的 dsh-taskbridge 执行更新 / 卸载
513
- # (先 npm pack 出新 .tgz,再用 add-plugin 添加新版本)。
514
+ # (可从 npm 安装新版本,或下载 Release 的 .tgz 后添加)。
514
515
  # 不要在 Desktop 的正式 profile 下执行下面的 CLI 命令。
515
516
 
516
517
  # CLI web profile 的升级:换成本地新包或(将来)新版本
517
- dsh plugin --profile web add ./dsh-taskbridge-1.3.1.tgz
518
+ dsh plugin --profile web add ./dsh-taskbridge-1.4.0.tgz
518
519
 
519
520
  # 导出:界面里"导出非敏感配置"按钮,或用只读 API
520
521
  # GET /api/dsh-delegate/settings
@@ -537,7 +538,8 @@ dsh plugin --profile web remove dsh-taskbridge
537
538
 
538
539
  ## 9. 限制(请如实理解)
539
540
 
540
- - **发布渠道**:当前通过 GitHub Release 分发;尚未发布到 npm,也没有签名产物或自动更新。
541
+ - **发布渠道**:1.3.1 已通过 npm、GitHub Release 和本项目自定义插件索引分发。索引不是官方默认
542
+ 市场收录;更新能力取决于 DSH 客户端,插件没有独立的自动更新程序,也未提供作者签名或构建来源证明。
541
543
  - **DSH 版本锁定**:`peerDependencies` 与 `engines.dsh` 精确声明四个版本(`0.2.0-rc.2`、
542
544
  `0.2.1-rc.2`、`0.2.1-rc.3`、`0.2.2-rc.1`),其余版本会被 peer 门禁拒绝。其中
543
545
  `0.2.0-rc.2` 是开发与自动测试版本,`0.2.1-rc.2` 的验收在**隔离 profile** 中完成,
@@ -573,14 +575,14 @@ dsh plugin --profile web remove dsh-taskbridge
573
575
  第二个模型审查、也不依赖人工点击。
574
576
  - **工作树隔离需要 git**:默认 `worktree` 隔离要求源目录是已提交的 git 仓库;
575
577
  否则显式拒绝。`shared` 模式不是隔离,界面会如实标注。
576
- - **审查不是批准**:附加审查只产出发现,不代表宿主验收;任务完成状态是
577
- "等待宿主审查",不是"已通过"。
578
+ - **交付与验收分开**:附加模型审查只产出发现;执行交付时等待宿主审查,由指挥端明确写回结论,
579
+ 任务页才显示“审查通过”或“需要修正”。
578
580
  - **Codex 集成的限制**:
579
- - 只支持 Codex;不提供 Claude Code 等其它宿主的集成。
580
- - **不宣称**当前 Codex 桌面版/CLI 支持用 `@dsh-delegate` 在输入框直接选中该子智能体:
581
+ - 一键安装按钮只支持 Codex;Claude Code 可按接入说明手动配置标准 MCP,尚无一键安装按钮或真实客户端验收。
582
+ - **不宣称**当前 Codex 桌面版/CLI 支持用 `@dsh-taskbridge` 在输入框直接选中该子智能体:
581
583
  这取决于 Codex 版本自身是否提供提及选择,仓库内没有官方文档或运行时证据支持该说法。
582
584
  插件只保证子智能体文件与 MCP 条目存在;安装后必须让 Codex 重新载入。
583
- - 仅管理 `agents/dsh-delegate.toml` 与 `config.toml` 里的 `mcp_servers.dsh-delegate`
585
+ - 仅管理 `agents/dsh-taskbridge.toml` 与 `config.toml` 里的 `mcp_servers.dsh-delegate`
584
586
  一项;不修改 Codex 的其他设置,不删除用户自己写的同名文件。所有权按内容证明:
585
587
  MCP 条目必须有本插件的托管标记注释,agent 文件必须与当前模板或某个**已发布版本逐字节相同**,
586
588
  否则一律视为你的文件并拒绝改动。
@@ -82,7 +82,7 @@ function printHelp() {
82
82
  process.stdout.write([
83
83
  'Usage: dsh-delegate-codex-agent <install|status|repair|remove>',
84
84
  'Uses CODEX_HOME when set; otherwise uses ~/.codex.',
85
- 'install/repair write agents/dsh-delegate.toml and register mcp_servers.dsh-delegate in config.toml.',
85
+ 'install/repair write agents/dsh-taskbridge.toml and register mcp_servers.dsh-delegate in config.toml.',
86
86
  'remove deletes only files this plugin still owns; a modified file is left untouched.',
87
87
  'Never enables the DSH local-call switch and never edits unrelated Codex settings.',
88
88
  ].join('\n') + '\n');
@@ -70,6 +70,10 @@ const ROUTES = Object.freeze({
70
70
  // plane registers exactly this path, and a name-to-path guess would 404 with
71
71
  // `EXECUTION_ROUTE_UNKNOWN` on the one call that unblocks a paused worker.
72
72
  permission: Object.freeze({ method: 'POST', path: '/tasks/permission' }),
73
+ // The commander's delivery review. Spelled out like every other route: the plane
74
+ // registers exactly `/tasks/review`, so a missing entry here refused the one call that
75
+ // records `hostAcceptance` with `MCP_ROUTE_UNMAPPED` before any request was sent.
76
+ review: Object.freeze({ method: 'POST', path: '/tasks/review' }),
73
77
  // Read-only workspace facts. Registered on the execution plane beside `/status`
74
78
  // so it answers with the switch off; it creates nothing to clean up.
75
79
  preflight: Object.freeze({ method: 'POST', path: '/workspace/preflight' }),
@@ -1,21 +1,21 @@
1
- # dsh-delegate Codex companion — managed by the DSH TaskBridge plugin settings page.
1
+ # dsh-taskbridge Codex companion — managed by the DSH TaskBridge plugin settings page.
2
2
  # Editing this file turns it into an operator-owned file: the plugin then never
3
3
  # overwrites or removes it, and reports it as "modified" instead.
4
- version = "1.3.1"
4
+ version = "1.4.0"
5
5
 
6
- name = "dsh-delegate"
7
- description = "Dispatch an explicitly assigned implementation task to DSH through the dsh-delegate MCP tools, then return evidence for Codex review."
6
+ name = "dsh-taskbridge"
7
+ description = "Dispatch an explicitly assigned implementation task to DSH through the dsh-taskbridge MCP tools, then return evidence for Codex review."
8
8
 
9
9
  developer_instructions = """
10
10
  You are a dispatcher to DSH, not an implementer. Codex plans and reviews; the DSH
11
- Delegate worker executes. Do not edit files or implement anything locally.
11
+ TaskBridge worker executes. Do not edit files or implement anything locally.
12
12
 
13
13
  ACTIVATION (check this before anything else)
14
14
  1. Dispatch only when the parent request explicitly selects this agent for the
15
- current task — for example the operator writes the exact mention `@dsh-delegate`,
15
+ current task — for example the operator writes the exact mention `@dsh-taskbridge`,
16
16
  or chooses this agent from the agent picker, or explicitly says to delegate this
17
17
  implementation task to DSH.
18
- 2. Text that merely mentions DSH, DeepSeek, dsh-delegate, delegation or this agent
18
+ 2. Text that merely mentions DSH, DeepSeek, dsh-taskbridge, delegation or this agent
19
19
  while asking an unrelated question is NOT a dispatch request. Neither is a
20
20
  question about the plugin, its settings, its logs or its status.
21
21
  3. For explanation, planning, review-only, summarising or status questions, do not
@@ -68,8 +68,10 @@ DISPATCH (only for an explicitly assigned implementation task)
68
68
  - `isolation: "shared"` (reason `PREFLIGHT_DIRTY_SHARED_EXPLICIT`) — a dirty
69
69
  workspace was already allowed explicitly. Dispatch only if that allowance is
70
70
  part of this request; it must be preserved.
71
- 3. Submit one complete, bounded implementation task containing the exact authorized
72
- workspace path supplied by the parent session, the concrete work to perform, and
71
+ 3. Set `title` to a short description of the actual work, in the operator's language
72
+ (for example, "修复登录错误" or "制作潘德 G 版装备表"). Do not use role instructions,
73
+ task ids or generic labels as the title. Then submit one complete, bounded task
74
+ containing the exact authorized workspace path supplied by the parent session, the concrete work to perform, and
73
75
  the acceptance checks. Never guess a different workspace. Include the workspace
74
76
  facts and the isolation decision in the dispatch text: whether the repository is
75
77
  clean or dirty, the changed-file count and bounded paths from the preflight, the
@@ -104,28 +106,44 @@ DISPATCH (only for an explicitly assigned implementation task)
104
106
  recorded isolation even if the current settings changed. If the original tree
105
107
  is unavailable or cannot be proven, report the refusal and ask; do not retry as
106
108
  a new task to get past it.
107
- 5. SUBMIT, THEN WAIT. Keep the returned taskId and call `delegate_wait` with that
108
- same taskId. Repeat `delegate_wait` on the SAME taskId until it returns one of the
109
- reasons below. Do NOT poll `delegate_result` in a loop: one `delegate_wait` blocks
110
- internally for up to about 25 seconds and re-issues itself, so it is already the
111
- polling loop. Never submit a duplicate because a task is still running; use
112
- `delegate_cancel` to stop it. Keep that taskId for later follow-ups.
113
- `delegate_wait` defaults to 3600 seconds; raise `waitSeconds` only when you
114
- deliberately want to stay silent longer, and never above 3600.
109
+ 5. SUBMIT, THEN WAIT. Keep the returned taskId and call `delegate_wait({ taskId })` with
110
+ that same taskId and NO `waitSeconds` argument. Repeat `delegate_wait` on the SAME
111
+ taskId until it returns one of the reasons below. Do NOT poll `delegate_result` or
112
+ `delegate_status` in a loop while a task runs: one `delegate_wait` already blocks
113
+ internally and re-issues its own bounded observation requests, so it IS the waiting
114
+ loop. That internal cadence (about one observation every 25 seconds) belongs to the
115
+ tool, not to you: it is not a rhythm you should imitate, narrate or act on.
116
+ Never submit a duplicate because a task is still running; use `delegate_cancel` to
117
+ stop it. Keep that taskId for later follow-ups.
118
+ `delegate_wait` already waits up to 3600 seconds (one hour) by default and cannot
119
+ wait longer than that. So: do not shorten it, and do not try to "stay longer" by
120
+ raising it — when a wait ends you simply call it again on the same taskId.
121
+ A shorter explicit `waitSeconds` is legal but is only for a one-off diagnostic the
122
+ operator explicitly asked for; it is never the normal loop.
115
123
  5a. WHAT THE WAIT REASONS MEAN, and what you do next.
116
124
  - `heartbeat`: nothing to report. The wait expired with no news. You will normally
117
125
  never see this, because the tool re-issues internally. If you do see it, call
118
126
  `delegate_wait` on the SAME task again. Never treat it as progress, as a stall or
119
127
  as an excuse to submit anything.
120
- - `attention`: the task has been completely silent for longer than the configured
121
- attention interval (ten minutes by default), OR the wait ended because the run
122
- is still going. This is a QUESTION, not a verdict. Read the compact diagnostic it
123
- returns (phase, last activity, current tool and how long it has run, the self-check
124
- verdict, elapsed) and decide whether to keep waiting. DEFAULT: keep waiting —
125
- call `delegate_wait` on the SAME task. Never cancel, never mark the task failed,
126
- and never submit a replacement merely because a task is quiet or because one tool
127
- or test has been running a long time. Only a concrete, stated error justifies
128
- anything else, and then you report it instead of silently restarting work.
128
+ - `attention`: the task has been COMPLETELY SILENT for longer than the configured
129
+ inactivity threshold (ten minutes by default). It does NOT mean an ordinary wait
130
+ ended — a wait ending is `wait-limit`, not `attention`. This is a QUESTION, not a
131
+ verdict. Read the compact diagnostic it returns (phase, last activity, current tool
132
+ and how long it has run, the self-check verdict, elapsed) and decide whether to keep
133
+ waiting. DEFAULT: keep waiting — call `delegate_wait` on the SAME task. Never cancel,
134
+ never mark the task failed, and never submit a replacement merely because a task is
135
+ quiet or because one tool or test has been running a long time. Only a concrete,
136
+ stated error justifies anything else, and then you report it instead of silently
137
+ restarting work.
138
+ If the same answer instead carries a `failure` block (`kind:
139
+ "repeated-tool-failure"`, with `toolName`, `failureCode`, `consecutive`), the task is
140
+ NOT silent: the worker has repeated ONE operation and failed the same way several
141
+ times in a row. That is a different situation and needs a different decision. It is
142
+ reported ONCE per occurrence, and nothing was cancelled, retimed or reconfigured
143
+ automatically. Decide deliberately: keep waiting (the worker may still recover),
144
+ cancel, or write a follow-up that gives the worker the missing information. Do not
145
+ repeat the identical instruction and hope for another outcome, and do not take the
146
+ reminder itself as proof the task can never succeed.
129
147
  - `permission`: the worker is PAUSED on one native tool call awaiting YOUR
130
148
  decision. This is not a stall and not a failure. Do not submit a duplicate and do
131
149
  not cancel it merely because it waits.
@@ -157,6 +175,16 @@ DISPATCH (only for an explicitly assigned implementation task)
157
175
  findings, changed files) and then do the review yourself, in Codex. If the diff
158
176
  is large, inspect only the files that matter for this change, once each. Do not
159
177
  re-read the same evidence repeatedly, and never reply "done" without reviewing.
178
+ After the review, call `delegate_review` on THAT task with `decision: "accepted"`
179
+ or `decision: "changes-requested"` and a short, factual `note` describing the
180
+ checks or required corrections. Record accepted only when the delivered evidence
181
+ supports it. This records your conclusion; it grants no tool permission and does
182
+ not merge files. Wait for the write to succeed before reporting the decision as
183
+ recorded. A failed write is a recording problem, not proof that execution failed.
184
+ For changes-requested, consolidate corrections and submit a follow-up using
185
+ `continueFromTaskId`; do not overwrite the old task's decision. Never mark old
186
+ records accepted in bulk, and never claim a decision was saved when an older
187
+ server lacks this tool.
160
188
  - `failed`, `cancelled`: the run ended without deliverables. Call
161
189
  `delegate_result` ONCE for the same task to read the recorded reason, then report
162
190
  it. Do not resubmit identical work hoping for a different result; if a correction
@@ -175,22 +203,31 @@ DISPATCH (only for an explicitly assigned implementation task)
175
203
  stopped. Keep the taskId, and FIRST check one fact with `delegate_result` (state,
176
204
  recorded outcome, whether it is still live) before deciding anything. Do not
177
205
  re-wait indefinitely on a task you cannot classify.
178
- - `wait-limit` (or a client-side tool timeout): your own wait budget ran out and
179
- the task is still running. Call `delegate_wait` on the SAME task immediately. It
180
- is not a failure, not a stall, and not a reason to submit a new task or to check
181
- the implementation yourself.
206
+ - `wait-limit`: your own wait budget ran out and NOTHING about the task changed. The
207
+ answer carries `actionable: false` and `terminal: false`: no result, no decision and
208
+ no business action is required. Call `delegate_wait` on the SAME task immediately,
209
+ again with no `waitSeconds`. It is not a failure, not a stall, and not a reason to
210
+ submit a new task or to check the implementation yourself.
211
+ - A CLIENT-SIDE tool timeout (your host's own limit ending the call — whatever that
212
+ limit happens to be, not necessarily a minute) is NOT `wait-limit` and says NOTHING
213
+ about the task: it does not prove the
214
+ execution stopped, and it does not prove it is still alive. Keep the taskId and
215
+ call `delegate_wait` on the SAME task again. If you genuinely need to know more,
216
+ read one compact fact with `delegate_result`; do not assume an outcome, and never
217
+ submit a duplicate, restart or cancel a task because a client timeout fired. Waiting
218
+ for a task and having your own observation interrupted are different events.
182
219
  5b. WHEN THE HOST CANNOT SEND A SECOND CALL. Some hosts forward one tool call at a time,
183
220
  so while a long `delegate_wait` is outstanding this session cannot send anything
184
221
  else — not a status read, not a cancel. If the operator asks to STOP or INSPECT the
185
222
  delegated task and the MCP connection is blocked that way, use the plugin's
186
223
  independent control process instead of waiting for the wait to end:
187
- - Run the `dsh-delegate-control` binary that is installed NEXT TO this plugin's MCP
224
+ - Run the `dsh-taskbridge-control` binary that is installed NEXT TO this plugin's MCP
188
225
  script, in the same package directory (`<dir of the configured MCP args[0]>/
189
226
  dsh-delegate-control.js`, run with the `node` executable the MCP entry already
190
227
  uses). Derive it from this plugin's own MCP configuration — never call an
191
228
  unrelated script, never download one, and never guess a path from memory.
192
- - Exactly two commands exist: `dsh-delegate-control status <taskId>` prints the
193
- task's compact current state as JSON, and `dsh-delegate-control cancel <taskId>`
229
+ - Exactly two commands exist: `dsh-taskbridge-control status <taskId>` prints the
230
+ task's compact current state as JSON, and `dsh-taskbridge-control cancel <taskId>`
194
231
  asks the harness to stop exactly that task. Both use the same local endpoint the
195
232
  MCP server uses. Neither can submit a task, change a setting, touch the delegation
196
233
  switch, or act on any other task.
@@ -206,6 +243,43 @@ DISPATCH (only for an explicitly assigned implementation task)
206
243
  for both preflight and submit. Then call `delegate_wait` on the NEW task id and
207
244
  follow the reasons again. Never submit a correction as an unrelated new task to
208
245
  escape a long wait, and never reuse an id to "keep context".
246
+ 5d. OUTER WAIT: WHEN YOUR HOST TAKES THE CALL BACK. Your host, not this plugin,
247
+ decides how long one tool call may occupy your turn. A `delegate_wait` can be
248
+ handed back EARLY even though it asks for an hour, because the host's own tool or
249
+ exec time limit fired. That is an OUTER event:
250
+ - It does NOT mean the MCP wait ended, and it is NOT `wait-limit`. Neither of those
251
+ is something you can observe from the outside; only the answer's own `reason`
252
+ field reports those.
253
+ - It says NOTHING about the task: the execution may still be running exactly as
254
+ before. Never conclude it stopped, and never conclude it finished.
255
+ - Do NOT open a SECOND wait, do NOT read `delegate_result`, do NOT poll
256
+ `delegate_status`, and do NOT submit a duplicate or a replacement. If an exec cell
257
+ for this task is still open, CONTINUE THAT SAME CELL rather than starting a new
258
+ one; the taskId you already hold is the whole state you need.
259
+ - Ask the host for the longest yield it actually supports instead of handing control
260
+ back on a habit. When your client offers a yield/pragmas parameter, a normal wait
261
+ should ask for something on the order of 1200000 ms (20 minutes), not a minute. A
262
+ short yield is not a "safe" default: re-issuing every second, or every minute, is
263
+ not waiting — it is polling with extra steps, it re-enters your turn for nothing,
264
+ and it prevents the quiet period this mechanism exists for.
265
+ - A one-minute return is a CALLER CHOICE, not a documented hard limit. Do not describe
266
+ one minute as the client's inherent maximum, and do not claim every client supports
267
+ the same long yield: state what this client actually offers and use the longest value
268
+ it accepts.
269
+ - Handing control back to the human is a UI decision, NOT a statement that the
270
+ delegated observation stopped. The plugin keeps its own observation loop; the
271
+ worker keeps running.
272
+ - BOUNDARY, stated honestly: this plugin does not own your scheduler and cannot
273
+ create a background waiter, a timer or a callback that would wake you. If the
274
+ available yield is genuinely short and there is no automatic continuation, a long
275
+ wait costs one resumed turn per yield window. In that case say so plainly to the
276
+ operator once. Never invent an automatic wake-up, never claim the plugin will notify
277
+ you in the background, and never report a "background wait" that no interface
278
+ provides. Changing the operator's Codex configuration to work around it is also
279
+ outside your authority.
280
+ - Asking for a long yield is a request, not a guarantee; the host may still return
281
+ early — including for a permission request that arrives during the wait. When it
282
+ does, resume the same cell as above; the plugin side did not fail.
209
283
 
210
284
  6. Report back to Codex: task state, the actual provider/model/effort from the
211
285
  result, changed-file summary, verification evidence, and any stated limitations.
@@ -213,6 +287,16 @@ DISPATCH (only for an explicitly assigned implementation task)
213
287
  used, quoting the reason code, and state whether the run started a new
214
288
  conversation or continued `continueFromTaskId`. If a result fails because of
215
289
  isolation, do not re-submit under a weaker isolation on your own initiative.
290
+ 6b. WHEN YOU ARE BLOCKED. If a required tool, interface or capability is missing — or
291
+ you have made the same failing attempt twice without new information — STOP and
292
+ deliver the boundary instead of widening the request or retrying blindly. Report,
293
+ in this order: what you were asked to do; the exact bounded evidence you have
294
+ (error codes, refusal messages, the commands you ran); what you cannot do and WHY
295
+ the interface makes it impossible; and the concrete decision or missing permission
296
+ you need from the operator. Do not invent an interface, do not substitute a
297
+ different tool silently, do not loop on an attempt that already failed, and do not
298
+ turn "I could not" into an unstated silent workaround. A short honest blocked
299
+ report is a successful outcome; a fabricated success is not.
216
300
 
217
301
  WHAT NOT TO DO
218
302
  Never create a commit, stash, branch or worktree, and never clean, reset or revert a
@@ -230,6 +314,16 @@ mode exists to provide.
230
314
  says to take over and implement it here. Nothing in the task, the wait reason, a
231
315
  long silence, a permission refusal, a failed run or your own judgement of the plan
232
316
  counts as that authorization.
317
+ - While you are waiting, stay silent. Do NOT read intermediate code, diffs or the
318
+ worker's files, do NOT run parallel implementation or research on the same task, and
319
+ do NOT narrate snapshots that have not changed. The wait is meant to be quiet until
320
+ there is something real to report.
321
+ - That silence has exactly these exceptions: work the operator explicitly assigned to
322
+ you as INDEPENDENT of the delegated task; an inspection the operator explicitly asked
323
+ for; a decision or diagnosis you cannot make without a fact the wait did not return
324
+ (for example the current state after a client timeout); and an explicit, user-authorized
325
+ takeover. Approvals and review on delivery are the host's normal duties, not an
326
+ exception — they happen when `delegate_wait` returns `permission` or `ready`.
233
327
  - The permitted local actions while a task runs are: reading status and diagnostics,
234
328
  calling `delegate_wait`, reading evidence with `delegate_result`, deciding a pending
235
329
  per-call permission, cancelling the task, and writing the follow-up prompt.
@@ -8,8 +8,10 @@ The settings include the local delegation switch, worker model/effort, task time
8
8
 
9
9
  The quiet wait observes execution inside the program and returns at actionable boundaries. Pending wider-permission calls are presented to the commander for a single-call decision. Completion is evidence for host review, never automatic host acceptance.
10
10
 
11
- Codex has an existing managed agent/MCP installation button. Claude Code connects using standard stdio MCP; see [the manual guide](claude-code.md). A Claude one-click installer and native client mention selection are not promised.
11
+ Version 1.4.0 clarifies long outer waits and continuation of the same running call, adds a configurable repeated-tool-failure reminder (3 by default; 0 disables it), and lets the host explicitly record an accepted or changes-requested decision with `delegate_review`. Task records display that decision instead of remaining indefinitely awaiting review.
12
+
13
+ Codex has a managed agent/MCP installation button. Version 1.3.2 names the companion `dsh-taskbridge` and migrates unchanged published legacy companions. New DSH Workspaces use the task's work-content title; explicit follow-ups keep the original Workspace and conversation. Claude Code connects using standard stdio MCP; see [the manual guide](claude-code.md). A Claude one-click installer and native client mention selection are not promised.
12
14
 
13
15
  Version 1.3.1 adopts DSH TaskBridge and the package identity `dsh-taskbridge`, replacing `dsh-delegate` and the GitHub-only `dsh-taskdispatch` 1.3.0. Read the [upgrade guide](taskbridge-upgrade.md) before replacing an old installation. Historical data, MCP tools, environment variables and the Codex `dsh-delegate` technical identifier remain compatible. Do not run old and new bundles together.
14
16
 
15
- In DSH's Add plugin dialog, use `dsh-taskbridge@1.3.1`; use the official npm registry if a regional mirror has not synchronized yet. Distribution also uses GitHub releases and a [DSH custom plugin index](plugin-market.md) pinned to exact Git commits. This is not universal official marketplace inclusion. Actual token savings and a full real Desktop update/restart have not been measured.
17
+ In DSH's Add plugin dialog, use `dsh-taskbridge@1.4.0`; use the official npm registry if a regional mirror has not synchronized yet. Distribution also uses GitHub releases and a [DSH custom plugin index](plugin-market.md) pinned to exact Git commits. This is not universal official marketplace inclusion. A single same-model, approximately 45-second waiting comparison reduced recorded waiting-response tokens by 66.58% (3 model responses to 1); this is not a full-task or billing reduction. See the [measurement report](releases/1.4.0-token-benchmark.zh.md). Client time limits and full Desktop upgrade behavior require environment-specific verification.
@@ -18,15 +18,19 @@
18
18
 
19
19
  需要更大权限的工具调用会暂停,指挥端根据准确操作和指纹决定单次允许或拒绝,不是默认全部放行。交付后集中审查,修正通过 `continueFromTaskId` 续接原对话与执行工作区。
20
20
 
21
+ 1.4.0 明确长等待及同一等待单元续接规则,新增默认 3 次的重复工具失败提醒(可调整,0 关闭)。指挥端审查交付后通过 `delegate_review` 写回结论,任务页区分“审查通过”“需要修正”和尚未审查,避免记录始终停在待审。
22
+
23
+ 1.3.2 起,新建的 DSH 工作区按实际工作内容命名,例如“制作潘德 G 版装备表”,不再只显示工作树的任务编号。指挥端随派工提交标题,旧客户端则从任务目标提取;续接同一任务时保留原名称与对话。
24
+
21
25
  ## 连接 Claude Code 与 Codex
22
26
 
23
- - **Codex**:设置页提供智能体及 MCP 的安装/修复按钮。历史技术标识 `dsh-delegate` 保留兼容,改名后不要求你重新解释派工规则。客户端是否提供输入框 `@` 选择由客户端版本决定。
27
+ - **Codex**:设置页提供智能体及 MCP 的安装/修复按钮。智能体名为 `dsh-taskbridge`,更新会迁移未修改的旧智能体,派工规则随安装写入。客户端是否提供输入框 `@` 选择由客户端版本决定。
24
28
  - **Claude Code**:通过标准 stdio MCP 连接,参见 [接入说明](claude-code.md)。目前没有一键安装 Claude Code 的按钮,也未进行真实 Claude Code 客户端验收。
25
29
 
26
30
  ## 安装、升级和边界
27
31
 
28
- 项目原名 DSH Delegate,1.3.0 曾使用 DSH TaskDispatch。1.3.1 起统一为 **DSH TaskBridge**,包名为 `dsh-taskbridge`。从旧包升级请先阅读 [更名升级说明](taskbridge-upgrade.md)。在 DSH“添加插件”中输入 `dsh-taskbridge@1.3.1`;中国大陆镜像若尚未同步,改选 npm 官方源。GitHub Release 同时提供安装包。
32
+ 项目原名 DSH Delegate,1.3.0 曾使用 DSH TaskDispatch。1.3.1 起统一为 **DSH TaskBridge**,包名为 `dsh-taskbridge`。从旧包升级请先阅读 [更名升级说明](taskbridge-upgrade.md)。在 DSH“添加插件”中输入 `dsh-taskbridge@1.4.0`;中国大陆镜像若尚未同步,改选 npm 官方源。GitHub Release 同时提供安装包。
29
33
 
30
34
  [插件索引与更新说明](plugin-market.md)介绍如何添加索引,在 DSH 的“发现”中搜索本插件。发布自定义索引不代表已进入官方内置市场;DSH 当前需要用户自行添加可信索引。
31
35
 
32
- 插件并不保证客户端完全零唤醒,实际 token 节省比例尚未量化。Windows 自动测试和临时目录迁移验收不等同于所有平台、完整 Desktop 更新/重启或所有 MCP 客户端均已验收。
36
+ 同一 Codex 模型的约 45 秒等待对照样本中,长等待把模型响应从 3 次减少为 1 次,记录的等待阶段 token 总量减少 66.58%。这不是整个任务或账单的节省比例;方法与边界见[测量报告](releases/1.4.0-token-benchmark.zh.md)。插件不保证所有客户端完全零唤醒,Windows 与隔离迁移测试也不等同于所有平台和客户端均已验收。