Skip to content

[codex] Serialize model catalog refreshes - #27208

Closed
aibrahim-oai wants to merge 1 commit into
mainfrom
dev/model-catalog-refresh-serialization
Closed

aibrahim-oai wants to merge 1 commit into
mainfrom
dev/model-catalog-refresh-serialization

Conversation

@aibrahim-oai

Copy link
Copy Markdown
Contributor

Summary

  • serialize model catalog refreshes across cache and remote update paths
  • resolve the current default model without waiting for an in-flight catalog write
  • fall back to the bundled catalog during lock contention instead of returning an empty model

Why

Thread startup needs a non-blocking way to choose a provisional model while an uncached remote catalog refresh runs. Concurrent refreshes could also race across ETag and cache mutation paths.

Validation

  • cargo test -p codex-models-manager (35 passed)
  • just fix -p codex-models-manager
  • just fmt

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