Skip to content

fix(doubao): 补齐重写回执与旧隔离状态的恢复边界 - #3697

Merged
deepcoldy merged 1 commit into
masterfrom
fix/doubao-late-start-followup
Nov 21, 2026
Merged

deepcoldy merged 1 commit into
masterfrom
fix/doubao-late-start-followup

Conversation

@deepcoldy

Copy link
Copy Markdown
Owner

背景

#3691 已合并到 master(894b76513)。后续对抗探针又覆盖了日志重写、旧 driver state 与多行草稿三类边界,发现合并内容仍有以下恢复缺口。本 PR 只追加这些修复,不改写 #3691 历史。

改动

  • 回执 fail closed:assignment.md 缩小到 pre-write baseline 之前时,不再从 offset 0 重扫历史;旧同文请求不能冒充本次提交回执。
  • 多行草稿识别:doubaoComposerState 读取 ❯ 行后的缩进 continuation rows。首视觉行为空、后续行仍有正文时不再误判 empty,避免连续空屏检查错误解除 quarantine。
  • 旧 parked state 兼容:driver 有 parked 记录但没有精确 turnId/dispatchAttempt 时,暂停 later-receipt 的 FIFO expiry;不再按队列顺序猜 owner,防止 A 在前、实际 B parked 时误删 B。新 state 仍按精确 owner 清理其它死轮次。
  • 回归覆盖:补 assignment shrink、continuation、legacy parked,以及 wrapped exact-input、两个原生日志缩短并复用 row offset 的行为测试。

影响面

  • 仅 Doubao 适配器、Doubao transcript 与对应 worker 保护路径;其它 CLI 的提交和配对逻辑不变。
  • 不新增命令、配置、环境变量或持久化格式。旧 state 无 owner 时使用保守等待,已有精确 owner 的 state 行为不变。
  • 本机没有已登录 Doubao,未跑真实 CLI e2e;验证使用真实仓库组件、worker 宿主函数和既有 Doubao TUI 替身。

验证

  • bun run build:通过(最新 master 894b76513 基线)。
  • 定向 5 文件:286 passed / 3 skipped。
  • 扩大 adapter、queue、journal、TraeX 与恢复回归 14 文件:1040 passed / 5 skipped。
  • Bun 独立运行关键 4 文件:157 passed / 3 skipped。
  • test/worker-doubao-late-start.integration.test.ts:12/12。
  • test/test-hygiene.test.ts + test/submit-unconfirmed-wording.test.ts:41/41。
  • 独立对抗复核:shrink 回扫历史、忽略 continuation、删除 legacy 保守 expiry 三个变异均咬红;本增量未发现新增问题。

🤖 Generated with Claude Code

- assignment.md 缩小时不再把历史同文请求当成新回执\n- 多行草稿读取 continuation rows,避免误判空输入框解除隔离\n- 旧 parked state 缺少精确 owner 时暂停 FIFO expiry,不按队列顺序猜测\n- 补 wrapped exact-input、日志缩短复用 offset 与对应恢复回归\n\nCo-Authored-By: Claude Code <[email protected]>
@github-actions

Copy link
Copy Markdown

🚀 Released in v3.59.27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant