You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Align root Node types with the supported Node 24 runtime - #30617
Orca runs Node 24, but the root project accepted Node 25 APIs during typechecking. Development now checks against Node 24 so unsupported APIs are caught before they reach desktop or SSH hosts.
What Changed
Change root @types/node from 25 to ^24.19.2 and regenerate the pnpm lockfile. This release is older than the existing three-day dependency delay.
Extend the existing runtime consistency check to reject declared or locked Node types whose major differs from the pinned runtime. Cover newer, older, missing, and compatible type versions.
Adapt stream callback annotations and test event/listener types to Node 24. IPC test messages explicitly pass no transferred handle, and signal tests use the callable listeners returned by listeners().
Remove three end-to-end type-error allowances that disappear with the matching types.
Keep mobile rejection-recording listeners intact with two documented type assertions for Node 24’s broad raw-listener declarations; preserve original once wrappers.
Why
Matching the supported runtime keeps compile-time API availability honest. The existing runtime check already ties together the Node and Electron pins, so extending it prevents future drift without adding another check or forcing transitive dependencies onto one Node type version.
Linked Issue
Requested by maintainer; no existing issue.
Visual Proof
N/A — dependency types, build checks, and test compatibility only; no visual or interaction change.
Testing
I manually tested these changes locally: macOS on Node 24; no app launch needed.
Automated tests added/updated: 20 runtime-pin checks cover type/runtime mismatches; all 231 tests across 19 relevant suites pass.
pnpm tc passed all four projects; pnpm run check:e2e-typecheck-ratchet passed with the reduced baseline (229 existing errors).
pnpm run check:node-runtime-pin, pnpm run check:code-quality:changed, formatting, and git diff --check passed.
Mobile native-compiler typecheck and test-typecheck ratchet passed; both affected mobile test suites passed (5 tests).
Full build and platform coverage run in CI.
Review
Production JavaScript is unchanged: its only source adjustment widens a stream callback annotation. Test changes preserve IPC messages and listener cleanup. Node type declarations apply equally to native and SSH builds.
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
No process, wire protocol, platform-path, or mobile behavior changes. Transitive packages may keep their own Node type versions.
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)
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 Node runtime pin checker now compares declared and locked @types/node major versions with the pinned runtime. The dependency range now targets Node 24 types. The changes also update process and stream test typings, remove three entries from the typecheck baseline, and adjust filesystem mock and speech stream type declarations.
Priority: ⬇️ Low
Merge Risk:⚪ Minimal · up to 39a21
This PR aligns development-time Node typings and related tests; no actionable production or workflow risk remains in the reviewed changes.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 10 files. (1 skipped: …
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely identifies the main change: aligning root Node type declarations with the supported Node 24 runtime.
Description check
The description is complete and relevant. It covers the user-facing change, rationale, linked-issue exception, visual-proof status, testing, review notes, compatibility considerations, and checklist s…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description is complete and relevant. It covers the user-facing change, rationale, linked-issue exception, visual-proof status, testing, review notes, compatibility considerations, and checklist status.
Full details: Docstring Coverage
Explanation
Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 10 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
Commit to this branch
Create a new PR
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Orca runs Node 24, but the root project accepted Node 25 APIs during typechecking. Development now checks against Node 24 so unsupported APIs are caught before they reach desktop or SSH hosts.
What Changed
@types/nodefrom 25 to^24.19.2and regenerate the pnpm lockfile. This release is older than the existing three-day dependency delay.listeners().Why
Matching the supported runtime keeps compile-time API availability honest. The existing runtime check already ties together the Node and Electron pins, so extending it prevents future drift without adding another check or forcing transitive dependencies onto one Node type version.
Linked Issue
Requested by maintainer; no existing issue.
Visual Proof
N/A — dependency types, build checks, and test compatibility only; no visual or interaction change.
Testing
pnpm tcpassed all four projects;pnpm run check:e2e-typecheck-ratchetpassed with the reduced baseline (229 existing errors).pnpm run check:node-runtime-pin,pnpm run check:code-quality:changed, formatting, andgit diff --checkpassed.Review
Production JavaScript is unchanged: its only source adjustment widens a stream callback annotation. Test changes preserve IPC messages and listener cleanup. Node type declarations apply equally to native and SSH builds.
Agent skill upstream boundary
Notes
No process, wire protocol, platform-path, or mobile behavior changes. Transitive packages may keep their own Node type versions.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)