Repository navigation
fix: preserve intentional watches in replan history - #8672
Open
lurenxiao1998 wants to merge 1 commit into
Open
lurenxiao1998 wants to merge 1 commit into
lurenxiao1998 wants to merge 1 commit into
Conversation
Signed-off-by: qinxiaojun.l <qinxiaojun.l@bytedance.com> Co-authored-by: TRAE CLI <traecli@bytedance.com>
lurenxiao1998
requested review from
huangruiteng,
loopx-agent and
songoow
as code owners
November 13, 2026 05:47
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
连续执行六次正常观察后,已登记
watch_only=true的 Monitor 仍会触发dead_monitor_repeat,中断持续等待。Python 历史编码遗漏了该字段,分 Agent 的状态入口又省略了 Monitor 上下文。本变更传递规范化的 watch 状态,由现有 TypeScript owner 按 Todo、目标及 Agent 归属匹配当前观察,并让两种 current streak 投影跳过持续 watch。目标摘要与实际 target key 分别处理;普通监控、缺失字段、错误归属、到期状态及独立工作 review 保留现有检测。分 Agent 的入口仅补充 Monitor 事实。
验证:先观察失败回归,再完成 90 项 Python 回归(含 file/SQLite 的真实 CLI)、36 项 TypeScript history 测试、TypeScript typecheck,以及 standard premerge 的 17 项检查。公开边界扫描通过。
范围复核:复用现有 Todo watch 和到期语义,无新增决策 owner。缺少当前 Todo 上下文的历史请求继续按原语义处理。本 PR 不授予安装、发布或合并权限;control-plane 合并由 maintainer 决定。