Repository navigation
refactor(renderer): remove the runtime-git-client barrel - #27977
Conversation
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🔵 Low · up to The documented lifecycle audit cannot run until its manifest entry for the deleted file is removed. This is a bounded developer-check failure, with no CI gate found to be affected. Pre-merge checks |
|
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Remove the deleted source from the audit manifest. · source-versions.json:1659-1663
docs/audits/closed-editor-model-lifetime/source-versions.json:1659-1663
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick winRemove the deleted source from the audit manifest.
loadSources()checks that every manifest source exists and matches its recorded hash during Vitest configuration loading. Becausesrc/renderer/src/runtime/runtime-git-client.tsno longer exists, the documented audit command can abort before running its tests. Remove this manifest entry; changing its hashes cannot satisfy the existence check.Suggested fix
- "src/renderer/src/runtime/runtime-git-client.ts": { - "worktreeBefore": "b3d121c51a6ab0f312fa4a4bc7e3df4d8f263e49c9ac5e9d3fe18d527b868ad7", - "mainBefore": "b3d121c51a6ab0f312fa4a4bc7e3df4d8f263e49c9ac5e9d3fe18d527b868ad7", - "worktreeFixed": "b3d121c51a6ab0f312fa4a4bc7e3df4d8f263e49c9ac5e9d3fe18d527b868ad7", - "mainFixed": "b3d121c51a6ab0f312fa4a4bc7e3df4d8f263e49c9ac5e9d3fe18d527b868ad7" - },
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
9acd4bbd-e856-4c22-a7ad-c540c245a264
📒 Files selected for processing (68)
src/renderer/src/components/editor/MonacoGutterContextMenu.tsxsrc/renderer/src/components/editor/combined-diff/load-sections/fetch-combined-diff-section.tssrc/renderer/src/components/editor/useEditorPanelContentState.test.tsxsrc/renderer/src/components/editor/useEditorPanelDiffContentLoader.tssrc/renderer/src/components/editor/useEditorPanelFloatingTabContentState.test.tsxsrc/renderer/src/components/editor/useEditorPanelHostUnresolvedContentState.test.tsxsrc/renderer/src/components/editor/useEditorPanelRemoteSiblingContentState.test.tsxsrc/renderer/src/components/editor/useEditorPanelVisibilityContentState.test.tsxsrc/renderer/src/components/native-chat/native-chat-session-option-discovery.tssrc/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.tssrc/renderer/src/components/right-sidebar/SourceControl.preview-open.test.tsxsrc/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-generation.test.tsxsrc/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-generation.tsxsrc/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-git-status-effects.test.tsxsrc/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-git-status-effects.tsxsrc/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-manual-refresh.tsxsrc/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-review-state.tsxsrc/renderer/src/components/right-sidebar/create-pull-request-dialog-field-model.tssrc/renderer/src/components/right-sidebar/git-status-refresh.tssrc/renderer/src/components/right-sidebar/source-control/ai/use-ai.tssrc/renderer/src/components/right-sidebar/source-control/commit/discard-all-failure-description.test.tsxsrc/renderer/src/components/right-sidebar/source-control/commit/source-control-discard-editor-owner.test.tsxsrc/renderer/src/components/right-sidebar/source-control/commit/source-control-entry-mutation-failures.test.tsxsrc/renderer/src/components/right-sidebar/source-control/commit/use-bulk-actions-capped-stage.test.tsxsrc/renderer/src/components/right-sidebar/source-control/commit/use-bulk-actions.tssrc/renderer/src/components/right-sidebar/source-control/commit/use-commit-action.tssrc/renderer/src/components/right-sidebar/source-control/commit/use-commit-message-generation.tssrc/renderer/src/components/right-sidebar/source-control/commit/use-discard-confirmation.tssrc/renderer/src/components/right-sidebar/source-control/commit/use-entry-mutations.tssrc/renderer/src/components/right-sidebar/source-control/listing/operation-target.tssrc/renderer/src/components/right-sidebar/source-control/listing/use-submodule-status.tssrc/renderer/src/components/right-sidebar/source-control/review/create-pr-intent-run-snapshot.tssrc/renderer/src/components/right-sidebar/source-control/review/use-create-pr-intent-commit-message.tssrc/renderer/src/components/right-sidebar/source-control/review/use-create-pr-intent-probes.tssrc/renderer/src/components/right-sidebar/source-control/review/use-create-pr-intent-review.tssrc/renderer/src/components/right-sidebar/source-control/review/use-hosted-review-creation.test.tsxsrc/renderer/src/components/right-sidebar/source-control/review/use-pull-request-generation.test.tsxsrc/renderer/src/components/right-sidebar/source-control/review/use-pull-request-generation.tssrc/renderer/src/components/right-sidebar/source-control/sync/use-branch-compare.tssrc/renderer/src/components/right-sidebar/source-control/sync/use-conflict-abort.tssrc/renderer/src/components/right-sidebar/source-control/sync/use-git-history-commit-actions.tssrc/renderer/src/components/right-sidebar/source-control/sync/use-git-history.tssrc/renderer/src/components/right-sidebar/stale-conflict-operation-poll.tssrc/renderer/src/components/right-sidebar/use-create-pull-request-field-generation.tssrc/renderer/src/components/right-sidebar/use-create-pull-request-field-seeding.tssrc/renderer/src/components/right-sidebar/use-file-explorer-ignored-paths.tssrc/renderer/src/components/right-sidebar/use-git-status-upstream-ref-watch.test.tssrc/renderer/src/components/right-sidebar/use-git-status-upstream-ref-watch.tssrc/renderer/src/components/right-sidebar/use-source-control-branch-compare.test.tsxsrc/renderer/src/components/right-sidebar/use-source-control-git-history.test.tsxsrc/renderer/src/components/right-sidebar/useFileExplorerTree.refresh-projection-churn.test.tsxsrc/renderer/src/components/right-sidebar/useFileExplorerVisibleRowProjection.debounce.test.tsxsrc/renderer/src/components/right-sidebar/useSourceControlSubmoduleStatus.test.tsxsrc/renderer/src/components/settings/CommitMessageAiPane.tsxsrc/renderer/src/components/settings/RepositoryForkSyncSection.test.tsxsrc/renderer/src/components/settings/RepositoryForkSyncSection.tsxsrc/renderer/src/components/sidebar/delete-worktree-dirty-change-hydration.test.tsxsrc/renderer/src/components/sidebar/use-delete-worktree-status-hydration.tssrc/renderer/src/components/status-bar/use-workspace-space-git-refresh-action.tssrc/renderer/src/runtime/runtime-git-client-branch-line-total.test.tssrc/renderer/src/runtime/runtime-git-client-merge.test.tssrc/renderer/src/runtime/runtime-git-client.test.tssrc/renderer/src/runtime/runtime-git-client.tssrc/renderer/src/store/repos/safe-auto-fork-sync.tssrc/renderer/src/store/slices/editor/actions/git-remote-push-pull.tssrc/renderer/src/store/slices/editor/actions/git-remote-status.tssrc/renderer/src/store/slices/editor/actions/git-remote-sync.tssrc/renderer/src/store/slices/repos-module-lifetime-coordinators.test.ts
💤 Files with no reviewable changes (1)
- src/renderer/src/runtime/runtime-git-client.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.
ELI5
src/renderer/src/runtime/runtime-git-client.tsonly re-exported functions from sevenruntime-git-*modules (context, diff, generation, status, sync, working tree). This PR points every importer at the module that defines what it uses, and deletes the forwarding file.What Changed
Users see no difference.
runtime-git-{diff,generation,status,sync,working-tree}-clientorruntime-git-client-context.runtime-git-generation-client, the discard/stage mocksruntime-git-working-tree-client, and the fork-sync and upstream-status mocksruntime-git-sync-client.Net: production −56 (+57/−113), tests +12 (+67/−55).
Why
Phase 3.99 / AGENTS.md rule: no barrels and no re-export shims. With direct imports, each import line names the module a file really depends on, and each test mocks the module the code under test actually calls. One barrel per PR keeps every review mechanical.
Linked Issue
N/A, internal Phase 3.99 cleanup (PR 3.5d).
Visual Proof
N/A, no UI or behaviour change.
Testing
No import, mock or
import()ofruntime/runtime-git-clientremains insrc tests mobile config .github.All 27 changed test files pass (199 tests).
pnpm tc,pnpm lintandpnpm run check:code-quality:changed(0 findings) pass on the whole barrel stack.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
P0/P1 review: my own review plus an independent reviewer.
Agent skill upstream boundary
Notes
Renderer-only import changes. SSH, wire, mobile and platforms are not affected.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)