From 67ef189d8b7b68c3096350db404bd649704ec6f2 Mon Sep 17 00:00:00 2001 From: Mina Yacoub <56601613+myacoub91@users.noreply.github.com> Date: Mon, 10 Aug 2026 12:34:28 +0200 Subject: [PATCH] fix(mobile): detect PowerShell cmdlet errors in work log rows (#5726) --- apps/mobile/src/lib/threadActivity.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/mobile/src/lib/threadActivity.ts b/apps/mobile/src/lib/threadActivity.ts index 886644bf83eb8c820e8b02d670ebbe8bfe0454c8..cd8e8cad212295fe9fccebcd4aa934f22892b210 100644 --- a/apps/mobile/src/lib/threadActivity.ts +++ b/apps/mobile/src/lib/threadActivity.ts @@ -554,6 +554,8 @@ function toolDetailTextLooksLikeFailure(text: string): boolean { normalized.includes("command not found") || (normalized.includes("cannot find path") && normalized.includes("because it does not exist")) || (normalized.includes("is not recognized") && normalized.includes("the term '")) || + normalized.includes("is not recognized as the name of a cmdlet") || + normalized.includes("a parameter cannot be found that matches parameter name") || //i.test(text) || /exit(?:ed)? with exit code\s+[1-9]\d*/i.test(text) || /exit code\s*[:\s]\s*[1-9]\d*\b/i.test(text) -- 2.54.0