Skip to content

Fix/release automation state on tab return - #187

Merged
iuyo5678 merged 2 commits into
mainfrom
fix/release-automation-state-on-tab-return
Sep 7, 2026
Merged

Fix/release automation state on tab return#187
iuyo5678 merged 2 commits into
mainfrom
fix/release-automation-state-on-tab-return

Conversation

@iuyo5678

@iuyo5678 iuyo5678 commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

问题表现

  • 标签归还后仍残留 hover 和 CDP 状态,可能继续自动确认用户弹窗。
  • 元素查找失败可能遗漏 CDP 持有记录;断开期间重新连接可能发生冲突。
  • 无效的归还请求也会清除已有 hover 状态。
    修复方案
  • 校验参数和借用关系后释放 hover,成功归还后清理当前会话的 CDP 持有关系,覆盖手动归还和会话停止时的自动归还。
  • 保留其他会话的连接;补齐元素查找阶段的持有登记,让同一标签的重新连接等待断开完成。
  • 仅对当前仍位于 Agent Window 的标签自动处理弹窗。
    验证措施
  • 新增 20 个回归测试,覆盖归还失败、部分归还、共享连接、并发重连及无效请求等场景。
  • 扩展全量 872 个测试通过。
  • TypeScript 类型检查、Biome 检查和生产构建通过。

@iuyo5678
iuyo5678 merged commit 498f8fb into main Sep 7, 2026
4 checks passed
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.

2 participants