Skip to content

diag(shell): Workspace 失败打印场景阶段 (#73) - #284

Merged
JavaZeroo merged 1 commit into
mainfrom
diag/workspace-stage
Oct 31, 2026
Merged

JavaZeroo merged 1 commit into
mainfrom
diag/workspace-stage

Conversation

@JavaZeroo

Copy link
Copy Markdown
Owner

内容

Workspace 的失败行补上场景自己的阶段变量:

workspace-failure mode=ui-selection stage=<N> what=…

为什么必要

三个样本的每标签页转储里 stage=0 都是同一个值——那是 ShellWindow::stage_,而选择/动作/复制这些场景由 Workspace 驱动,进度保存在 Workspace 的 stage_ 里(workspace_selection_scenario.hpp 用它推进 0→11 的阶段)。

所以此前拿到的 stage=0 不能用来判断卡在哪一步;补上这一项后,下一次命中即可知道是卡在等待标记、等待鼠标交互,还是复制阶段。

验证

termforge_shell 构建通过。

边界

  • 只加一个字段到失败行;
  • 每标签页的 stage= 保留(它对其余场景仍有效),两个 stage 分别代表不同对象,注释里已写明。

Refs #73

The per-tab stage stays zero for workspace-driven scenarios, so the dump now also prints the stage the workspace itself tracks.
@JavaZeroo
JavaZeroo merged commit f904df3 into main Oct 31, 2026
10 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.

1 participant