Repository navigation
fix(server): read a cold model catalog's list and default together - #86
Merged
Merged
Conversation
Port of iOS 88915116. The model list and the default model were read one after the other, so a cold model picker waited two location-boot round trips. Both reads now start together; a missing default route still leaves the list, and a failed list cancels the default. Before (origin/dev): with the list held open, only GET /api/model was sent (the new test fails). After: both requests are in flight at once. Verified: vm.sh check :server (adds modelCatalogReadsTheListAndDefault Together); ios-sync.py check.
Merged
This branch was previously deployed
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.
A cold model picker read the model list and then the default model, one after the other. It now reads both at once, so it waits one round trip instead of two. A server without the default-model route still gets its list.
iOS: 88915116
Emulator (session-lab, both model routes delayed 3 s, fresh connect): on
devthe reads ran back to back and the composer showed the "Model" placeholder for about 6 s; with this PR both reads started together and the model showed after about 3 s.Verified: new test
modelCatalogReadsTheListAndDefaultTogetherfails without the fix;scripts/check.sh :serverpasses.