From 0f1f3eb457cec97f3c6e5c589246c93bac641549 Mon Sep 17 00:00:00 2001 From: PJ Date: Thu, 23 Apr 2026 17:48:18 +0700 Subject: [PATCH] fix(runner): fatal on permanent WDA drop during hierarchy fetch --- internal/runner/runner.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/runner/runner.go b/internal/runner/runner.go index 463a436..32087f0 100644 --- a/internal/runner/runner.go +++ b/internal/runner/runner.go @@ -106,6 +106,9 @@ func Run(ctx context.Context, options Options) (Summary, error) { g.Wait() if hierarchyErr != nil { + if isWDADrop(hierarchyErr) { + return summary, fmt.Errorf("WDA connection permanently lost at step %d - re-run the test: %w", stepIndex, hierarchyErr) + } logger.Warn("hierarchy fetch failed", "step", stepIndex, "err", hierarchyErr) } treeSize := 0