Repository navigation
chore: remove verified unused Orca code - #27175
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
📥 Commits
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The reviewed localization cleanup does not leave the affected interfaces with missing translations. No issue identified here prevents merging. Pre-merge checks |
|
74a1d7c to
d1d4523
Compare
ELI5
Remove code Orca no longer calls. Users should see the same behavior before and after this cleanup.
What Changed
Delete ten disconnected modules and 71 unused exported functions across the desktop, renderer, shared code, and relay. Remove two private dashboard functions, four private lookup constants, and imports that became unused. Remove the three orphaned translation keys from all six language catalogs as well. The result removes over 1,000 lines overall.
The deleted modules cover retired WSL hook helpers, wall-clock parsing, a mobile capability parser, client shell lookup, skill version selection, sidebar counts, tab-group context, quick-command animation, and inactive-workspace estimates.
Rebased onto current main, including #27177, which fixes an existing cross-version test fixture that also failed on this PR's original base. The cleanup adds no compatibility-test changes.
Why
These implementations have no consumers. Keeping them makes it harder to identify the code that actually controls Orca.
Used the existing Knip 5.88.1 audit to find candidates, then independently searched the entire repository, including mobile, cloud, tests, scripts, and build configuration. Every removed exported function's name occurred only at its definition. Checked namespace imports and dynamic loading separately. Kept worker/build entry points and compile-time checks that Knip reports as unused.
This approach removes confirmed unreachable implementations while avoiding broad automatic deletion based on one tool's findings.
Linked Issue
None — maintainer cleanup requested directly.
Visual Proof
N/A — only unused implementations and imports are removed; there is no visual or interaction change.
Testing
Local validation on macOS, with
ORCA_BACKGROUND_LAUNCH=1:pnpm tc— passed before and after.pnpm test <direct consumer test files> --maxWorkers=6— 199 test files passed; 2,432 tests passed, one expected failure, one skipped. Selected existing tests usingcollectUnitDependencyGraphinconfig/scripts/ci-unit-dependency-graph.mjsand the direct importers of all edited modules.pnpm run build:electron-vite,pnpm run build:cli,pnpm run build:relay— passed. Relay builds include Linux, macOS, Windows, and WSL targets.pnpm run check:code-quality:changed, Oxlint on all 69 edited files, formatting, andgit diff --check— passed.pnpm run verify:localization-catalogs,pnpm run verify:localization-extraction,pnpm run verify:localization-coverage— passed after deleting the orphaned translation entries.pnpm test tests/e2e/cross-version-wire/ --maxWorkers=6— all 37 files and 191 tests passed with the corrected fixture from main; the platform-detection suite also passed.pnpm run typecheck:e2ereports the same 256 existing errors on the original base and this branch, with no new errors. Rootpnpm tcpasses.No new tests: this removes implementations with no callers; existing consumer tests exercise the retained behavior. Full lint, full unit suite, native packaging, and real Linux/Windows/SSH runs were not run locally and remain for CI.
Review
Reviewed dynamic worker loading, module initialization, persistence and cleanup, remote compatibility, folder workspaces, and platform-specific uses. The removed implementations do not register RPC methods or produce wire messages; remaining protocol values and registered handlers are retained.
Agent skill upstream boundary
Notes
The remaining Knip file findings are build/process entry points, an Electron test fixture, and compile-time parity checks. They are intentionally retained.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)