GeezerVison is showing github.com — Preserve custom model display names across catalog syncs by diegocantarero · Pull Request #307 · lidge-jun/opencodex
Conversation
diegocantarero
commented
Jul 23, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- preserve
customModels[].displayName when OpenCodex regenerates the Codex model catalog
- change only the picker label (
display_name), leaving routing slugs, aliases, providers, and native OpenAI marketing names untouched
- document repeated-sync and managed-restart behavior, including the best-effort offline-boot fallback
Root cause
OpenCodex already accepted and persisted displayName for custom models, but gatherRoutedModels() dropped it before catalog generation. Each ocx sync therefore rebuilt the row with its routed slug as the visible label.
This change carries the configured label into CatalogModel and applies it only to the generated catalog row display_name.
Restart behavior
The managed service attempts a catalog sync after the proxy binds on startup. A successful restart therefore reapplies configured display names from config.json. If that best-effort sync cannot complete, the previously persisted catalog remains in place and the next successful ocx sync reapplies the label.
Safety
- no authentication, credential, launchd, routing, alias, provider, or native-model behavior changed
- no custom model catalog is made global
- display names cannot alter the provider/model slug
Validation
bun run typecheck
bun run prepush: 3,520 tests passed, GUI lint passed, privacy scan passed
bun test tests/codex-catalog.test.ts: 90 tests passed
bun run build in docs-site: 121 pages built
git diff --check
Regression coverage
- configured label reaches
display_name
- absent or whitespace-only label retains historical fallback
- slug, alias, and provider remain unchanged
- repeated catalog regeneration is idempotent
- native OpenAI marketing names remain untouched
customModels propagation is covered end to end
Authored by Diego Cantarero.
Summary by CodeRabbit
-
New Features
- Added support for custom model display names in the Codex model picker.
- Display names can be configured through the CLI or proxy management API.
- Custom names are preserved during catalog refreshes and syncs.
- Display names affect presentation only and do not change routing, aliases, or model identity.
-
Documentation
- Added setup, validation, persistence, and fallback behavior guidance for custom model display names.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
coderabbitai
Bot
commented
Jul 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 9513ac43-6250-4a3f-a019-961cd8e149a4
📥 Commits
Reviewing files that changed from the base of the PR and between 54e0bbf and c080449.
📒 Files selected for processing (3)
docs-site/src/content/docs/guides/codex-integration.md
src/codex/catalog.ts
tests/codex-catalog.test.ts
📝 Walkthrough
Walkthrough
Adds display-only names for custom models, propagates them into catalog entries, preserves routing identity, validates synchronization behavior, and documents CLI and management API configuration.
Changes
Custom model display names
| Layer / File(s) |
Summary |
Catalog display-name materialization src/codex/catalog.ts |
CatalogModel accepts an optional displayName; non-empty trimmed values become catalog display_name labels without changing routing metadata. |
Custom model propagation and validation src/codex/catalog.ts, tests/codex-catalog.test.ts, docs-site/src/content/docs/guides/codex-integration.md |
Custom routed models carry display names through catalog construction; tests cover fallbacks, identity preservation, sync stability, native-name protection, and custom-provider propagation; the guide documents CLI, API, validation, and recovery behavior. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Suggested reviewers: ingwannu, lidge-jun
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name |
Status |
Explanation |
| Description Check |
✅ Passed |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
✅ Passed |
The title clearly summarizes the main change: preserving custom model display names during catalog syncs. |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed against current dev and the recent catalog changes. The new displayName stays presentation-only: it updates display_name after catalog identity is derived and does not alter the routed slug, alias, provider, native snapshot rows, or discovery behavior. Integrated regression coverage passed, including the current #308/#310 catalog cases. Full combined pre-push: 3,667 passed / 0 failed; typecheck, privacy scan, and docs build also passed. Approved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 23, 2026
This was referenced Aug 14, 2026
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
…talog syncs (local stack, review doc 030)
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
…talog-labels
Preserve custom model display names across catalog syncs
Reviewers
Ingwannu
Ingwannu approved these changes
lidge-jun
Awaiting requested review from lidge-jun
lidge-jun is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|