Repository navigation
Split relay Git handler responsibilities - #17217
Conversation
Greptile SummaryThe PR refactors the relay Git handler into a small facade backed by focused operation modules while preserving the existing RPC surface and shared runtime state.
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/relay/git-handler.ts | Reduces the original handler to a facade that retains shared subprocess, cache, watcher, capability, and response-stream ownership. |
| src/relay/git-handler-registration.ts | Reconstructs the existing Git RPC and notification registration surface against the extracted operation set. |
| src/relay/git-handler-operation-context.ts | Defines the shared host contract through which extracted handlers access Git execution, caching, watchers, and streaming. |
| src/relay/git-handler-operation-set.ts | Instantiates and groups the focused operation handlers around one shared facade host. |
| src/relay/git-handler-command-termination.ts | Moves termination-aware Git execution onto the shared process runner while preserving timeout, abort, output, and error metadata behavior. |
| src/relay/git-handler-fetch-operations.ts | Extracts fetch, fork synchronization, remote-tracking, and hosted-review ref operations. |
| src/relay/git-handler-sync-operations.ts | Extracts push, pull, fast-forward, and rebase synchronization flows. |
| src/relay/git-handler-worktree-operations.ts | Extracts worktree listing, creation, removal, cleanliness, repository detection, and base-ref refresh operations. |
| src/relay/git-handler-read-operations.ts | Extracts status, history, ignored-path, submodule, and file-diff reads while retaining deduplication and streaming. |
| src/relay/git-handler-discard-operations.ts | Extracts single and bulk discard behavior with worktree-boundary and literal-path protections. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
Client[SSH Git provider] --> Dispatcher[Relay dispatcher]
Dispatcher --> Registration[Git handler registration]
Registration --> Read[Read operations]
Registration --> Changes[Worktree change and discard]
Registration --> Compare[Comparison and object diff]
Registration --> Fetch[Fetch and synchronization]
Registration --> Worktree[Worktree operations]
Registration --> Exec[Exec and clone operations]
Read --> Host[GitHandler facade / shared host]
Changes --> Host
Compare --> Host
Fetch --> Host
Worktree --> Host
Exec --> Host
Host --> Git[Git subprocess]
Host --> Cache[Shared caches and capabilities]
Host --> Stream[Response streaming]
Reviews (4): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile
…om-3-mobile-browser
…-bottom-4-prune-resolved
…-bottom-5-pane-tree-ops
…bottom-6-mobile-troubleshoot
…lines-bottom-7-external-manager
…es-bottom-8-attach-services
…s-bottom-9-hosted-review-creation
…ax-lines-bottom-10-automation-dispatch-events
… ra/max-lines-bottom-11-settings-navigation
…-lines-bottom-12-daemon-init
…ottom-13-gitlab-item-dialog
…lines-bottom-14-relay-dispatcher
…nes-bottom-15-mobile-host-screen
…lines-bottom-16-runtime-file-client
…-lines-bottom-17-ports-panel
…ottom-18-runtime-environments-pane
…ra/max-lines-bottom-19-local-pty-provider
…lines-bottom-20-cdp-bridge # Conflicts: # src/main/browser/cdp-bridge.ts
…ttom-21-git-handler
…1-git-handler # Conflicts: # config/max-lines-baseline.txt # src/renderer/src/hooks/automation-dispatch-completion.ts
|
Warning Review limit reachedNext included review available in 15 minutes. View limit detailsLimit 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. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (16)
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. Comment |
* Split speech session lifecycle * Split terminal output scheduler pipeline * Split mobile browser pane modules * Prune resolved max-lines suppressions * Split pane tree equalization logic * Extract mobile troubleshoot screen styles * Split external automation manager * Split main window service attachments * Split hosted review creation checks * Split automation dispatch event handling * Split settings navigation metadata * Split daemon initialization lifecycle * Split GitLab item dialog * Split relay dispatcher layers * Split mobile host screen * Retarget mobile view settings source test * Split runtime file client layers * Split ports panel layers * Split runtime environments pane layers * Split local PTY provider responsibilities * Split CDP bridge responsibilities * Split relay Git handler responsibilities * Track moved relay Git fetch audit * Fix F3-speech for stablyai#17123 * Fix F1-cycle for stablyai#17131 * Fix F4-navtest for stablyai#17157 * Fix F2-allowlist for stablyai#17161
Summary
Validation
Stacked on #17215.