Repository navigation
refactor(mobile): group host catalog credentials and descriptors - #40739
Merged
Merged
Conversation
Contributor
Finishing Touches
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. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Keep saved host identity, credentials and live host descriptors with their own Mobile features. Import RPC types directly from the files that define them.
What Changed
host-catalog,host-credentialsandhost-descriptors, updating callers and mocks directly. Keep all five existing native/web pairs together and update their active metadata.host-connection-history. Keep the same serialized mutation queue, timestamp, missing-host handling and best-effort failure behavior. The sole caller retains its original host-store initialization request.RpcOperationSenderalias with the originalUnvalidatedRpcRequestPorttype in all 33 consumers. Remove the alias module, localPushClientalias and unusedRpcAcceptedResultforwarding export. Runtime imports and raw sends stay the same.Why
Durable host records and secrets have different ownership from live connections. These modules now sit with their defining domains, with direct imports and no barrels, forwarding wrappers or compatibility aliases.
Linked Issue
Internal module-layout cleanup; no new issue.
Visual Proof
N/A — module ownership and imports change without rendered layout or interaction changes.
Testing
ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed: all 16 checks passed (103.9s), including related unit tests.9a08eaa5db3, including all 12 unit shards, static/typecheck, relay and Mobile web bundle lanes. Conditional skipped jobs retain their skipped status.Risk
Level: Medium. The main risks are credential/catalog singleton identity, mutation ordering, native/web owner resolution and eager initialization. The existing queues, caches, revisions, storage keys and live client lifetimes are preserved. The recency operations retain their complete bodies and platform behavior. The RPC correction changes erased type references without widening the sender contract or adding raw sends. A plain revert restores the previous organization.
The historical raw-port inventory test was deliberately retired upstream. Its unused inventory data remains unchanged; this PR adds no allowance and does not claim the old counter still enforces anything. Current type and operation boundaries remain. Untouched test-policy debt and historical deleted alarms remain documented in local evidence without new cuts or replacement coverage claims.
Cross-platform, remote-host and folder-workspace scoping stays with the same implementations. Local validation runs on macOS; hosted CI supplies its platform coverage before merge.
Review
Prospective source and boundary audits accepted the initial candidate, including complete surviving cases and explicit losses. Actual-parent, connection-history, canonical-type and push-delivery reviews accepted; root replays passed. Plans and detailed evidence stay local and ignored.
Agent skill upstream boundary
Checklist