Skip to content

feat: refresh pi model catalog - #3

Merged
bcho merged 2 commits into
mainfrom
dynamic-catalog
Jul 10, 2026
Merged

feat: refresh pi model catalog#3
bcho merged 2 commits into
mainfrom
dynamic-catalog

Conversation

@bcho

@bcho bcho commented Jul 10, 2026

Copy link
Copy Markdown
Member

What changed

  • Refresh pi's generated model catalog from pi-mono in a detached background process.
  • Cache the validated catalog under the ai state directory and merge it with existing pi custom models.
  • Add atomic cache writes, a single-flight refresh lock, and tests for commented pi model configuration.

Why

The bundled pi catalog can lag newly published models. Refreshing the generated source makes newly available models, including openai-codex/gpt-5.6-terra, available without upgrading pi itself.

User impact

Model-aware commands continue to use the last valid cache immediately. A refresh runs at most every six hours, so newly published models are normally available on the next invocation without blocking the current command.

Validation

  • npm test
  • npm run check
  • Live background-refresh smoke test confirming openai-codex/gpt-5.6-terra is listed

@bcho
bcho marked this pull request as ready for review July 10, 2026 22:32
@bcho
bcho merged commit 203d3b7 into main Jul 10, 2026
1 check passed
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