Repository navigation
Split runtime file client layers - #17188
Conversation
Greptile SummaryThe PR reorganizes the monolithic runtime file client into a small compatibility facade and focused modules while retaining the existing public entry point.
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/renderer/src/runtime/runtime-file-client.ts | Replaces the monolithic implementation with a compatibility facade that re-exports the split client API. |
| src/renderer/src/runtime/runtime-file-routing.ts | Centralizes local, SSH, and environment-runtime routing and path ownership helpers. |
| src/renderer/src/runtime/runtime-file-read-client.ts | Houses file reads, previews, and local or chunked remote downloads. |
| src/renderer/src/runtime/runtime-file-mutation-client.ts | Houses directory reads and file-system mutation operations. |
| src/renderer/src/runtime/runtime-file-import-client.ts | Houses external-path staging, import orchestration, deconfliction, and rollback behavior. |
| src/renderer/src/runtime/runtime-file-upload-client.ts | Houses chunked upload and temporary-file commit behavior. |
| src/renderer/src/runtime/runtime-file-search-client.ts | Houses search, listing, cancellation, and legacy Quick Open fallback behavior. |
| src/renderer/src/runtime/runtime-file-watch-client.ts | Houses shared runtime watch lifecycle and event fan-out state. |
| config/max-lines-baseline.txt | Removes the obsolete suppression for the now-small runtime-file-client facade. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
Caller[Existing runtime-file callers] --> Facade[runtime-file-client facade]
Facade --> Types[Shared types]
Facade --> Reads[Reads and downloads]
Facade --> Mutations[Mutations]
Facade --> Imports[Imports and uploads]
Facade --> Search[Search and listing]
Facade --> Metadata[Metadata]
Facade --> Watches[Shared watches]
Reads --> Routing[Runtime routing]
Mutations --> Routing
Imports --> Routing
Search --> Routing
Metadata --> Routing
Watches --> RPC[Runtime subscription transport]
Mutations --> Fencing[Mutation RPC fencing]
Imports --> Fencing
Reviews (3): 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
…6-runtime-file-client # Conflicts: # src/renderer/src/hooks/automation-dispatch-completion.ts
|
Warning Review limit reachedNext included review available in 14 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 (12)
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
📝 WalkthroughWalkthroughThe centralized runtime file client was split into specialized modules. Shared types and routing helpers define local and remote operation handling. New clients implement runtime-aware reads, downloads, searches, metadata queries, mutations, uploads, imports, and watches. Runtime RPC calls preserve capability, SSH, execution-host, and pairing-revision expectations. The original client now re-exports the specialized APIs, and its max-lines exemption was removed. ✨ Finishing Touches📝 Generate docstrings
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 * 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
Preservation audit
Validation
pnpm tcpnpm tc:webpnpm test src/renderer/src/runtime— 150 files, 1,144 passedpnpm run check:code-quality:changedpnpm check:max-lines-ratchet— 70 grandfathered suppressionspnpm run check:runtime-electron-ratchetpnpm test config/scripts/check-max-lines-ratchet.test.mjs— 15 passedgit diff --checkThe remote-wire review found no Rule 1/2/3 change: this is a verbatim module split with the RPC/content literal multiset unchanged. The documented cross-version harness does not cover file RPCs; the runtime-file suites exercise the existing old-host method-not-found and projection fallbacks directly.
Known inherited CI state from #17181:
import/no-cyclewarningsStacked on #17181.