Skip to content

Commit e80e92c

Browse files
committed
fix(mobile): detect PowerShell cmdlet errors in work log rows
toolDetailTextLooksLikeFailure missed two PowerShell failure patterns that web has matched since #3022, so identical failing output rendered as neutral on mobile. Add the same substring matches for parity.
1 parent a20923c commit e80e92c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/mobile/src/lib/threadActivity.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ function toolDetailTextLooksLikeFailure(text: string): boolean {
554554
normalized.includes("command not found") ||
555555
(normalized.includes("cannot find path") && normalized.includes("because it does not exist")) ||
556556
(normalized.includes("is not recognized") && normalized.includes("the term '")) ||
557+
normalized.includes("is not recognized as the name of a cmdlet") ||
558+
normalized.includes("a parameter cannot be found that matches parameter name") ||
557559
/<exited with exit code\s+[1-9]\d*\s*>/i.test(text) ||
558560
/exit(?:ed)? with exit code\s+[1-9]\d*/i.test(text) ||
559561
/exit code\s*[:\s]\s*[1-9]\d*\b/i.test(text)

0 commit comments

Comments
 (0)