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
Restore the Git command runner’s lint gate after the latest fetch-race change pushed it past the file-size limit.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
2
$\color{#1a7f37}{\Huge{\mathbf{+}}}$15
$\color{#cf222e}{\Huge{\mathbf{−}}}$14
$\color{#1a7f37}{\Huge{\mathbf{+}}}$1
What Changed
Move the existing buffer-command options type, unchanged, into git-exec-options.ts, where the command option contracts already live. Import that concrete type in the runner. Runtime JavaScript is identical for both files.
Why
Main’s runner currently has 301 counted lines and fails the 300-line lint limit. This blocks the shared-sidebar cleanup PR #42107. Colocating the options contract restores the gate while preserving Git execution and public signatures.
Linked Issue
CI prerequisite for maintainer-requested cleanup #42107.
Visual Proof
N/A — type-only extraction; no UI or runtime changes.
Testing
Full native root Oxlint: passed (34,767 files, zero errors; eight existing warnings).
Both files produce byte-identical ESNext JavaScript before and after extraction.
Normal commit hooks: passed.
Final ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2 --timeout=2 after the final commit, immediately before push: 23 static/typecheck gates passed; the broad unit phase reached the 120-second cap. This is not a full local unit-suite pass. Required hosted checks must pass before merge.
Hosted required checks and aggregate: pending.
No tests added; the contract and emitted runtime were compared directly.
Risk
Level: Low. A type mismatch could reject existing Git callers at build time. The extracted members and optionality are unchanged, and Node typecheck passes. Local, WSL and SSH execution bodies are untouched. Revert this PR to restore the inline type; no data migration.
AI Disclosure
Review
Two independent source reviews verify the exact type contract and unchanged runtime.
Agent skill upstream boundary
Not applicable; no upstream skill-installer material copied or translated.
Notes
No planning or evidence files are included. No forwarding exports added.
Checklist
Small CI prerequisite, with problem and scope explained
Risk and revert path stated
Visual proof N/A
Platform, remote, mobile and folder workspace impact considered
No actionable comments were generated in the recent review.
Walkthrough
The change adds the exported GitBufferExecOptions type with fields for buffer execution. gitExecFileAsyncBufferInSpan now uses this type instead of its inline options shape. The function implementation is unchanged.
Merge Risk: Minimal · up to 0ae6e
This is a type-only refactor that restores the lint line-limit check and has no runtime behavior change. Merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: moving the Git buffer option types so the command runner passes the lint line-limit gate. It uses the conventional fix(ci) prefix and is specific enough for a teammate…
Description check
The description follows the template's main sections: ELI5, What Changed, Why, Linked Issue, Visual Proof (N/A with reason), Testing, Risk with a level, Review, Agent skill upstream boundary, Notes, a…
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: Title check
Explanation
The title names the main change: moving the Git buffer option types so the command runner passes the lint line-limit gate. It uses the conventional fix(ci) prefix and is specific enough for a teammate scanning history. The summary files confirm the type move into git-exec-options.ts and its import in git-exec-file.ts.
Full details: Description check
Explanation
The description follows the template's main sections: ELI5, What Changed, Why, Linked Issue, Visual Proof (N/A with reason), Testing, Risk with a level, Review, Agent skill upstream boundary, Notes, and Checklist. It explains the before and after, the mechanism, the reason for the change, and the revert path. Gaps: the template's AI Disclosure section is left empty, which is acceptable for a maintainer. The Linked Issue cites a CI prerequisite (#42107) rather than an issue that the template's 'Fixes #' line expects, and the Testing section does not tick the template's manual test or automated test boxes. The Testing section also reports a partial check:changed run that hit a timeout. These points are minor and do not block the check.
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 6a6f95ce-d27e-44d4-8c71-04d67dd6e260
Commits
Reviewing files that changed from the base of the PR and between a36d1dd and 0ae6e52.
Files selected for processing: 2
src/main/git/command-runner/git-exec-file.ts
src/main/git/command-runner/git-exec-options.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
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
Restore the Git command runner’s lint gate after the latest fetch-race change pushed it past the file-size limit.
What Changed
Move the existing buffer-command options type, unchanged, into
git-exec-options.ts, where the command option contracts already live. Import that concrete type in the runner. Runtime JavaScript is identical for both files.Why
Main’s runner currently has 301 counted lines and fails the 300-line lint limit. This blocks the shared-sidebar cleanup PR #42107. Colocating the options contract restores the gate while preserving Git execution and public signatures.
Linked Issue
CI prerequisite for maintainer-requested cleanup #42107.
Visual Proof
N/A — type-only extraction; no UI or runtime changes.
Testing
ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2 --timeout=2after the final commit, immediately before push: 23 static/typecheck gates passed; the broad unit phase reached the 120-second cap. This is not a full local unit-suite pass. Required hosted checks must pass before merge.No tests added; the contract and emitted runtime were compared directly.
Risk
Level: Low. A type mismatch could reject existing Git callers at build time. The extracted members and optionality are unchanged, and Node typecheck passes. Local, WSL and SSH execution bodies are untouched. Revert this PR to restore the inline type; no data migration.
AI Disclosure
Review
Two independent source reviews verify the exact type contract and unchanged runtime.
Agent skill upstream boundary
Notes
No planning or evidence files are included. No forwarding exports added.
Checklist