Skip to content

[leas code] Remove unused mobile review code - #13421

Merged
nwparker merged 2 commits into
mainfrom
nwparker/leas-code-mobile-dead-followup
Aug 10, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/leas-code-mobile-dead-followup

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

Delete five unreferenced mobile exports and their stale imports/comments: an unused diff-open state transition, native-chat send adapter, default-base fetcher, PR prefill builder, and hosted-review eligibility alias. Repository-wide symbol searches and the mobile dead-code scan found declaration sites only. The change removes 81 lines with no replacement code.

Screenshots

No visual change.

Testing

  • pnpm lint
  • pnpm typecheck (mobile package)
  • pnpm test (mobile package)
  • pnpm build
  • Added or updated high-quality tests that would catch regressions, or explained why tests were not needed

Verification:

  • Mobile full suite: 438 files, 3,427 passed, 3 skipped
  • Focused affected-module suites: 4 files, 46 tests
  • pnpm run typecheck in mobile
  • pnpm run lint in mobile
  • Targeted oxfmt check
  • pnpm run check:react-doctor:changed
  • Fresh knip --directory mobile no longer reports any removed symbol; its existing unrelated findings remain
  • git diff --check

No tests were added because every deleted declaration had zero callers; the existing tests continue to cover all remaining behavior in the affected modules.

AI Review Report

The review checked each symbol with repository-wide exact-word searches, followed imports that became unused, confirmed no barrel/package/public consumer, and reran mobile dead-code analysis after deletion. It also checked that remaining diff review, native-chat accepted-action, base-ref search, fresh status, PR readiness, and hosted-review creation paths stay intact. The change was reviewed for macOS, Linux, and Windows; it changes no shortcuts, labels, paths, shell behavior, Electron behavior, SSH routing, folder-workspace logic, or remote wire formats.

Security Audit

No executed code path, input validation, command execution, authentication, secret handling, dependency, IPC, or protocol behavior changed. The removed hosted-review alias was internal and unreferenced; the underlying eligibility implementation remains available at its active import path.

Notes

Independent cleanup PR based on main. This is a follow-up to the earlier mobile dead-code cleanup and does not depend on it.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c071ea6c-8236-4282-85ce-d197de2c2918

📥 Commits

Reviewing files that changed from the base of the PR and between b2e29a2 and 818563b.

📒 Files selected for processing (5)
  • mobile/src/session/mobile-diff-review-state.ts
  • mobile/src/session/use-native-chat-action-outcomes.ts
  • mobile/src/source-control/mobile-base-ref-search.ts
  • mobile/src/source-control/mobile-open-pr-prefill.ts
  • mobile/src/source-control/mobile-pr-create.ts
💤 Files with no reviewable changes (5)
  • mobile/src/source-control/mobile-pr-create.ts
  • mobile/src/source-control/mobile-base-ref-search.ts
  • mobile/src/session/mobile-diff-review-state.ts
  • mobile/src/session/use-native-chat-action-outcomes.ts
  • mobile/src/source-control/mobile-open-pr-prefill.ts

📝 Walkthrough

Walkthrough

Removed mobile diff file-open tracking and the native chat sent-flag hook. Replaced mobile PR prefill construction with getMobilePrEligibilityReadiness, which derives readiness fields from Git status. Removed the mobile hosted-review eligibility import and public re-export. Removed the default base-reference RPC wrapper.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change by stating that unused mobile review code was removed.
Description check ✅ Passed The description includes all required sections and provides clear change, testing, review, security, and platform details.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

@nwparker
nwparker merged commit 403c60b into main Aug 10, 2026
45 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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