Skip to content

diag(shell): Workspace 失败时打印场景身份 (#73) - #275

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

JavaZeroo merged 1 commit into
mainfrom
diag/selection-workspace-dump

Conversation

@JavaZeroo

Copy link
Copy Markdown
Owner

内容

Workspace 场景(选择、动作、四 shell 等)的失败路径此前只保留错误文本,产物里只剩 run.py 抛出的一行 ValueError: shell probe failed: …,读不到是哪个场景失败。

本次在 Workspace 的窗口过程 catch 处补一行:

workspace-failure mode=<test_mode> what=<message>

为什么

#73 的复核指出:ShellWindow::collect() 的转储(stage=/input_high_water=)只对直接由 shell 驱动的场景生效,ui-selection 走的是 Workspace 派发路径,因此那份转储对选择场景从未生效。先补最小的一行身份信息,让下次复现至少能定位到场景。

验证

termforge_shell 构建通过。

边界

  • 只加场景名与错误文本;InputQueue::snapshot()、output_bytes/read_error、整屏转储需要额外的访问器,留给下一片;
  • 不改任何期限与判定。

Refs #73

Workspace scenarios failed with only the caller text, so the window procedure now prints the scenario mode and the error before tearing down.
@JavaZeroo
JavaZeroo merged commit ab8ad27 into main Oct 31, 2026
8 of 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