Skip to content

refactor Git repository host boundaries - #16177

Merged
nwparker merged 2 commits into
stablyai:mainfrom
nwparker:nwparker/less-big-git-host-boundary
Aug 25, 2026
Merged

nwparker merged 2 commits into
stablyai:mainfrom
nwparker:nwparker/less-big-git-host-boundary

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary\n\n- split repository detection, Git marker scanning, default-base resolution, ref search, and branch-conflict logic behind the existing repo facade\n- split SSH Git reads, noninteractive operations, working-tree state, remote sync, review-head handling, and worktree operations behind the existing provider class\n- preserve host-owned execution, per-instance caches and queues, Git 2.25 fallback behavior, folder workspaces, and all public APIs\n- remove only the two stale max-lines baseline entries\n\n## Validation\n\n- 18 serial focused test files, 193 tests, including repo export and SSH method parity locks\n- supplemental default-remote suite: 6 tests\n- node typecheck\n- targeted oxlint and oxfmt\n- changed-code quality: 0 findings\n- max-lines and runtime-Electron ratchets\n- production line audit: all files at or below 300 lines\n- independent repository review: no findings\n- clean post-rebase divergence: 0 behind / 1 ahead\n\n## Risk\n\nCross-platform and remote behavior is covered by focused native, WSL, SSH, relay, routing, compatibility, and authority tests. No live SSH/WSL host or real Git 2.25 binary matrix was exercised locally.

@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 6 seconds.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ec4973bf-df35-4ff9-93dc-c9f11cdcea32

📥 Commits

Reviewing files that changed from the base of the PR and between 2960fe9 and da45b0a.

📒 Files selected for processing (19)
  • config/max-lines-baseline.txt
  • src/main/git/repo-api-parity.test.ts
  • src/main/git/repo-base-ref-search.ts
  • src/main/git/repo-branch-conflict.ts
  • src/main/git/repo-default-base-ref.ts
  • src/main/git/repo-default-remote.test.ts
  • src/main/git/repo-detection.ts
  • src/main/git/repo-git-marker-scan.ts
  • src/main/git/repo.ts
  • src/main/providers/ssh-git-noninteractive-provider.ts
  • src/main/providers/ssh-git-provider-api.test.ts
  • src/main/providers/ssh-git-provider-exec.test.ts
  • src/main/providers/ssh-git-provider.ts
  • src/main/providers/ssh-git-read-provider.ts
  • src/main/providers/ssh-git-relay-errors.ts
  • src/main/providers/ssh-git-remote-sync-provider.ts
  • src/main/providers/ssh-git-review-head-provider.ts
  • src/main/providers/ssh-git-working-tree-provider.ts
  • src/main/providers/ssh-git-worktree-provider.ts

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 07b13c8 into stablyai:main Aug 25, 2026
50 checks passed
paidaxingyo666 pushed a commit to paidaxingyo666/Manta that referenced this pull request Aug 25, 2026
dallascrilley pushed a commit to dallascrilley/orca that referenced this pull request Aug 27, 2026
nwparker added a commit that referenced this pull request Sep 29, 2026
Fifth audit wave, renderer-scoped. Same shape as #23941: delete private-predicate
cases whose behavior is already asserted through the module's real entry point,
then make the symbol module-private again.

Two whole files went as provider-local replays: `terminal-paste-payload-metadata`
(same corpus, same inputs, same expectations as `lib/paste-payload-metadata`, just
renamed symbols) and `repro-8784-ghe-avatar-fallback` (every case now asserted
through the rendered component in `github-user-avatar.test.tsx`).

Dead production code removed where tests were its only callers:
`resolveImeModifierGesture`, `isCodexTerminalStartupCommand` (its codex branches
are covered by `isKnownTuiAgentTerminalStartupCommand`), `reconcileSelectionKeys`
(superseded by `reconcileSourceControlSelectionState`, which the hook calls), and
`chatFontScaleShortcutLabels` (nothing renders those labels).

Roughly three quarters of the flagged modules were detector false positives and
were left untouched; the scanner cannot see re-export barrels, `.web.ts` platform
variants, build-time overrides, or `*ForTests` inspection seams.

`accumulateWorkItemPages` is deliberately NOT deleted despite having only test
callers. It, the dead `filesystem-directory-listing-limit` module, and
`resolveImeModifierGesture` all landed unwired in the same refactor (#16177), and
unwired page accumulation is more likely a lost wiring step than dead weight.
Deleting it would erase that evidence.
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