Skip to content
Source
Sign inSign up
pingdotgg/t3code

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

Mergedmyacoub91(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5726/headmerged by juliusmarminge View on GitHub

What Changed

Adds two PowerShell failure patterns to the mobile tool-failure heuristic toolDetailTextLooksLikeFailure in apps/mobile/src/lib/threadActivity.ts:

  • is not recognized as the name of a cmdlet
  • a parameter cannot be found that matches parameter name

Same substring matches web already makes in apps/web/src/session-logic.ts (#3022).

Why

The web heuristic gained these two patterns in #3022; the mobile copy at apps/mobile/src/lib/threadActivity.ts never received them. Identical failing PowerShell output therefore renders as a failure row on web but as neutral on mobile. This restores cross-surface parity (web/mobile should classify the same tool output identically).

Fixes https://github.com/pingdotgg/t3code/issues/5724

UI Changes

N/A — classification-only fix. Affected rows already render the failure affordance on web; this only makes mobile agree. No layout, motion, or visual differences.

Checklist

  • This PR is small and focused (2-line diff)
  • I explained what changed and why
  • N/A — no UI screenshots needed (classification fix only)
  • N/A — no animation/interaction changes

Note

Low Risk Two heuristic substring checks in mobile-only classification logic; no auth, data, or API changes.

Overview Aligns mobile work-log tool failure detection with web by extending toolDetailTextLooksLikeFailure in threadActivity.ts with two PowerShell error substrings: is not recognized as the name of a cmdlet and a parameter cannot be found that matches parameter name.

Tool rows whose detail/command text matches these patterns are classified as failure instead of neutral, so the same failing PowerShell output shows the failure affordance on mobile as it already does on web (#3022).

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit e80e92caf78d0d6b6b76bedbe0dfabfc74236faf. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Detect PowerShell cmdlet errors as failures in work log rows

Extends toolDetailTextLooksLikeFailure in threadActivity.ts to recognize two additional PowerShell error phrases: "is not recognized as the name of a cmdlet" and "a parameter cannot be found that matches parameter name". These strings are now treated as failure indicators alongside existing checks.

Macroscope summarized e80e92c.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: 3bd7b7e5-b53b-42de-a615-fd679eefd2c7

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved e80e92c

      Adds two PowerShell error patterns to an existing failure-detection heuristic function. Purely additive, follows existing patterns, and only affects UI failure indication in mobile work logs.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. juliusmarminge merged this67ef189

    5. juliusmarminge closed this

Sign in to join this conversation.