fix(record): 记录 switch_tab,并按 tab 维护 Trace v3 页面状态 - #108
Open
shnpd wants to merge 1 commit into
Open
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
shnpd
force-pushed
the
fix/trace-v3-multitab-state
branch
from
August 18, 2026 07:57
f57fcbf to
ace6af4
Compare
shnpd
requested review from
Ljy-0827 and
iuyo5678
and
a lite review from Copilot
August 18, 2026 08:49
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.
摘要
switch_tab(由supports_tab_switch_steps能力协商开启)。settledByTab),切 tab 后的操作绑定到当前 tab 的页面状态,而不再误用上一个 tab 的lastSettled。switch_tab,保持旧客户端兼容。背景
基于
feat/trace-v3-recorder。此前多 tab 录制时,切 tab 后的 click/fill 可能错误关联到前一个 tab 的 settled state。测试计划
trace.json含op: "switch_tab",且后续 step 使用目标 tab 的 statessupports_tab_switch_steps的客户端不会产出或依赖switch_tab