authorgravatar for 56601613+myacoub91@users.noreply.github.comMina Yacoub <56601613+myacoub91@users.noreply.github.com> 2026-08-10 12:34:28+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-08-10 12:34:28+02:00
log67ef189d8b7b68c3096350db404bd649704ec6f2
tree3ec84a99face6461a1c03ab1bf193ae8b415c601
parentfbcae59ef57f28cc51956ca47c0838298b24e79c
signature Signed by PGP key B5690EEEBB952194

fix(mobile): detect PowerShell cmdlet errors in work log rows (#5726)


1 files changed, 2 insertions(+), 0 deletions(-)

apps/mobile/src/lib/threadActivity.ts+2
......@@ -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)