Skip to content

Boot, reinstall commands, diagnostics overhaul, and review fixes#48

Merged
thymikee merged 5 commits into
mainfrom
review/reinstall-followup-fixes
Feb 12, 2026
Merged

Boot, reinstall commands, diagnostics overhaul, and review fixes#48
thymikee merged 5 commits into
mainfrom
review/reinstall-followup-fixes

Conversation

@thymikee
Copy link
Copy Markdown
Member

Summary

Adds boot and reinstall commands, overhauls boot diagnostics with platform-specific failure reasons, enforces runCmd timeouts, improves find ambiguity handling, enriches replay error context, and replaces CI boot scripting with dogfooded agent-device boot.

Includes review follow-up fixes on top of the original codex/reinstall-review-followups branch:

  • Remove duplicate node scan in find handler: the ambiguity check already calls findBestMatchesByLocator; the subsequent findNodeByLocator call (which internally delegates to the same function) was redundant. Now reuses bestMatches.matches[0] directly.
  • Add IOS_TOOL_MISSING boot failure reason: when xcrun/simctl is missing on iOS, the classifier now returns IOS_TOOL_MISSING with a targeted hint ("run xcode-select --install…") instead of the generic BOOT_COMMAND_FAILED.
  • DRY up RETRY_LOGS_ENABLED env parsing: extracted isEnvTruthy() into retry.ts and replaced the duplicated inline parsing in ios/index.ts and android/devices.ts.

Test plan

  • pnpm typecheck passes
  • pnpm test:unit — all 96 tests pass (includes new IOS_TOOL_MISSING classification test)
  • pnpm test:smoke — all 5 tests pass

Made with Cursor

thymikee and others added 5 commits February 12, 2026 17:39
…og env check

- Remove redundant findNodeByLocator call in find handler; reuse
  bestMatches from the ambiguity check instead of scanning nodes twice.
- Add IOS_TOOL_MISSING boot failure reason so xcrun/simctl absence gets
  a specific diagnostic hint instead of generic BOOT_COMMAND_FAILED.
- Extract isEnvTruthy helper into retry.ts and replace duplicated
  RETRY_LOGS_ENABLED parsing in ios/index.ts and android/devices.ts.

Co-authored-by: Cursor <cursoragent@cursor.com>
@thymikee thymikee force-pushed the review/reinstall-followup-fixes branch from 85c5d3d to 2aa1bd3 Compare February 12, 2026 16:43
@github-actions
Copy link
Copy Markdown

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-48/

Built to branch gh-pages at 2026-02-12 16:43 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@thymikee thymikee merged commit 1cf54a2 into main Feb 12, 2026
6 checks passed
@thymikee thymikee deleted the review/reinstall-followup-fixes branch February 12, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant