GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Preserve custom model display names across catalog syncs by diegocantarero · Pull Request #307 · lidge-jun/opencodex

Conversation

@diegocantarero

@diegocantarero diegocantarero commented Jul 23, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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
All reactions
  • 👍 1 reaction
@diegocantarero
Preserve custom model display names
c080449
@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@diegocantarero
diegocantarero marked this pull request as ready for review July 23, 2026 02:56
@diegocantarero
diegocantarero requested review from Ingwannu and lidge-jun as code owners July 23, 2026 02:56
Ingwannu
Ingwannu approved these changes Jul 23, 2026
View reviewed changes

@Ingwannu Ingwannu left a comment

Copy link
Copy Markdown
Owner

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.

All reactions
@Ingwannu
Ingwannu merged commit 6561ae4 into lidge-jun:dev Jul 23, 2026
4 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jul 23, 2026
docs(cursor): document exec policy and catalog troubleshooting #321
Merged
Document Cursor exec policy and catalog troubleshooting #303
Closed
@songwunil songwunil mentioned this pull request Jul 30, 2026
fix(catalog): prioritize model names in picker labels #763
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Aug 3, 2026
fix(catalog): preserve provider capabilities on custom models #963
Closed
3 tasks done
This was referenced Aug 14, 2026
[Feature]: Model picker order is capped at 5 routed models (subagentModels .slice(0,5)); no supported way to order a larger catalog #1649
Closed
feat(catalog): add modelPickerOrder to customize the Codex model-picker order #1669
Closed
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
merge: PR lidge-jun#307 preserve custom model display names across ca…
3abf7ef
…talog syncs (local stack, review doc 030)
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
devlog: WP2 merge record — lidge-jun#307 landed locally (3abf7ef), 36…
eeae140
…31 tests green; WP3 lidge-jun#317 NOOP
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@Ingwannu
Merge pull request lidge-jun#307 from diegocantarero/agent/persist-ca…
cdf03b3
…talog-labels

Preserve custom model display names across catalog syncs
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
merge: integrate maintainer dev c63091b into review stack — upstream l…
65cfa3c
…idge-jun#307/lidge-jun#309/lidge-jun#279/lidge-jun#303/lidge-jun#318/lidge-jun#319 + v2.7.34 joined with local lidge-jun#304 merge and lidge-jun#279 fixups (models-auth revert, abortable SSE decoder)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Ingwannu Ingwannu Ingwannu approved these changes
@lidge-jun 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

Labels

None yet

Projects

None yet

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.

2 participants

@diegocantarero @Ingwannu
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.