Skip to content

chore(deps): remove unused desktop and mobile declarations - #30182

Merged
nwparker merged 2 commits into
mainfrom
nwparker/deps-unused-cleanup
Oct 18, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/deps-unused-cleanup

Conversation

@nwparker

@nwparker nwparker commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 0
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6 $\color{#cf222e}{\Huge{\mathbf{−}}}$​58 $\color{#cf222e}{\Huge{\mathbf{−}}}$​52

ELI5

Orca installs a few packages that its applications and build tools never use. Remove those declarations while keeping speech recognition, development refresh, mobile networking, and the shadcn development CLI working the same way.

What Changed

  • Remove the unused desktop sherpa-onnx WASM wrapper and direct react-refresh dependency. Speech already loads the five explicitly declared platform packages; Vite's React plugin serves its own refresh runtime.
  • Remove the unused Squirrel Windows installer declaration; Orca uses NSIS. Electron-builder still retains Squirrel through an optional peer, so this does not claim to remove that transitive tree.
  • Remove mobile's unused Zustand dependency and move its ws declaration to development dependencies, where its mock server, probes, and tests use it. The mobile application uses the platform WebSocket API.
  • Drop the obsolete WASM wrapper build permission. Keep the native speech packages, shadcn CLI, and existing security overrides. Both locks retain all other resolved versions: two root package records and one mobile package record disappear.

Why

Every unnecessary package adds a publisher and artifact to trust. Removing proven unused declarations is smaller and safer than replacing working implementations or adding resolution overrides. User-visible features and hot refresh behavior remain unchanged.

Linked Issue

Maintainer-requested follow-up to the dependency supply-chain audit; no separate issue.

Visual Proof

N/A — dependency declarations only; no product UI or interaction changes. A temporary hidden Electron renderer exercised the actual web Vite configuration before and after removal: button state survived a component edit, a deliberate syntax error showed Vite's error overlay, and fixing it recovered without navigation. The post-removal document marker and time origin stayed identical throughout. The /@react-refresh response was byte-for-byte identical before removal and after a fresh server start (SHA-256 61710aeaa24340cc21c9a0c64e258420c5dfc8dcc2b99322cc70813c1c5d32ea). Temporary probe files were removed.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Validation performed on macOS; no application code changes require new unit tests. Existing speech, parser, React commit-hook, packaging, and mobile tests cover the retained behavior. Native Windows/Linux installers and device builds remain CI coverage.

  • pnpm tc — passed for root Node, CLI, and renderer projects.
  • pnpm build:desktop:assets — passed (WSL guest, CLI, Electron, projected web client, and verified mobile web bundle).
  • pnpm test src/main/speech src/shared/json-token-reader.test.ts src/shared/ripgrep-dense-match-json.test.ts src/renderer/src/lib/react-commit-cascade-observer.test.ts — 18 files / 132 tests passed.
  • pnpm test config/scripts/electron-builder-speech-config.test.mjs — passed.
  • pnpm run check:code-quality:changed, manifest formatting, git diff --check — passed.
  • Root and mobile pnpm install --frozen-lockfile --ignore-scripts — passed after cleanup.
  • After CI exposed the historical-release parser dependency, restored it. release-checkout.unit.test.ts passes all 11 tests. The complete cross-version wire suite passes all 46 files / 232 tests with ORCA_DISABLE_SHARED_RELEASE_CACHE=1 (the cache behavior CI uses). Earlier cold-cache runs hit checkout-preparation timeouts; both affected files then passed all 18 tests alone, and the full suite passed after checkout preparation completed.
  • Mobile pnpm typecheck — passed. Raw typecheck:tests retains the existing 535 diagnostics; the failing-file set exactly matches tests-typecheck-baseline.txt (no added or stale entries).
  • Mobile standalone pnpm exec expo export --platform web --output-dir /tmp/orca-unused-mobile-export — passed.
  • Mobile pnpm test — 1,037 files and 10,803 tests passed; two files and six tests skipped.
  • Mobile pnpm check:tests-typecheck — passed: 1,035 tests included, four deliberately excluded, 119 grandfathered failing files; no baseline growth.

Review

Self-reviewed dependency references, implicit build-tool consumers, platform speech loading, and lockfile package records. Kept @streamparser/[email protected] as a development dependency because the cross-version harness executes the v1.4.221 dense parser that imports it; the existing compatibility test now documents this indirect dependency. Kept the electron-winstaller: false install policy because its package remains reachable through electron-builder's peer tree. Retained implicit type packages, Expo's development client, React Native worklets, and oxlint's type-aware checker.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Desktop, SSH-host, folder workspace, and mobile execution paths are unchanged. Existing mobile Metro/Expo refresh dependencies remain present.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5e8bcf75-acf0-4bab-ba1a-22b07a9c0a97
📥 Commits

Reviewing files that changed from the base of the PR and between 68808db and 266de9d.

⛔ Files ignored due to path filters: 2
  • mobile/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 3
  • mobile/package.json
  • package.json
  • pnpm-workspace.yaml
💤 Files with no reviewable changes: 2
  • pnpm-workspace.yaml
  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

📝 Walkthrough

The root manifest removes sherpa-onnx and three devDependencies. Platform-specific sherpa-onnx optional dependencies remain. The workspace configuration removes sherpa-onnx from allowBuilds. The mobile manifest removes ws and zustand from runtime dependencies and adds ws to devDependencies.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 266de

No confirmed issue from the dependency cleanup remains to block merging after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
Title check Passed The title clearly and concisely identifies the dependency cleanup across desktop and mobile packages.
Description check Passed The description is complete and follows the repository template. It explains the change, rationale, testing, compatibility considerations, visual proof status, review notes, and checklist completion.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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 c359d09 into main Oct 18, 2026
54 checks passed
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