Skip to content

fix(server): read a cold model catalog's list and default together - #86

Merged
Tarquinen merged 1 commit into
devfrom
port-catalog
Nov 15, 2026
Merged

Tarquinen merged 1 commit into
devfrom
port-catalog

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

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 dev the 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.

dev vs PR, 4.5 s after connecting

Verified: new test modelCatalogReadsTheListAndDefaultTogether fails without the fix; scripts/check.sh :server passes.

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.
@Tarquinen
Tarquinen merged commit 4741de4 into dev Nov 15, 2026
3 checks passed
@Tarquinen Tarquinen mentioned this pull request Nov 16, 2026

This branch was previously deployed

1 inactive deployment
release — 8233821d Deployed Nov 15, 2026 by Tarquinen via check #262
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant