You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
e2e: Windows host confirm() dialog dismissal missing — UC-J02 FAIL cascades to J05/J06 BLOCKED #851
UC-J05/J06 BLOCKED: session.attach failed: the selected After Effects did not answer the readiness probe — it is busy, blocked by a dialog — J02 が残した modal confirm が AE をブロックし、後続 case の ae-session attach を全て道連れにした
Activity
test(e2e): fix Windows host-dialog dismissal for UC-J02 (#851)
rebuildup commentedon Nov 30, 2026
Windows devnode (UUU) で原因を特定し修正しました(PR #861, commit 59abc08)。
根本原因(2点、両方ともハーネス側)
confirm()の "Script Alert"(class#32770)は AE メインウィンドウの子ではなく、AfterFX プロセスが owner となる top-level ウィンドウでした。実機の window dump(EnumWindows + EnumChildWindows 再帰)で確認済み:hwnd=9703030 cls=#32770 txt=[Script Alert] vis=True pid=9900 AfterFX、子にButton [Yes]/Button [No]。EnumChildWindows(MainWindowHandle)では決して到達しないため、旧実装は常に "no matching dialog button found" でした。$names = ${namesJson} | ConvertFrom-Jsonが["No","Cancel",...]という裸の配列リテラルを生成しており、PowerShell では[...]は型リテラルなので parse error でスクリプト全体が死んでいました(@(...)か文字列経由の ConvertFrom-Json が必要)。修正
EnumWindowsで top-level を列挙し AfterFX pid でフィルタ →#32770かつ visible を収集(title が /script/i に合うものを優先)。parented の場合に備えEnumChildWindows(MainWindowHandle)経路もフォールバックとして残置。'...'でクォートしてConvertFrom-Jsonへ渡す形に修正。Buttonクラス子要素の text(&アクセラレータ除去後)が対象名に一致したらBM_CLICK(0x00F5) を SendMessage。実機検証
devnode の live "Script Alert" に対して session-1 の scheduled task 経由で実行し、
Noクリック → キューに溜まっていた連続 confirm を 3 件連続で解除 →evalScriptがgot:2で応答回復。さらに e2e runner 経由で UC-J02 が PASS (53.5s) することを確認済みです。なお SSH (session 0) からは interactive desktop の window が一切見えないため、Windows での UI 自動化は必ず Interactive logon の scheduled task 経由で実行する必要があります(今回の検証でもその制約を踏みました)。