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 — fix(catalog): preserve provider capabilities on custom models by MarcTCruz · Pull Request #963 · lidge-jun/opencodex

Conversation

@MarcTCruz

@MarcTCruz MarcTCruz commented Aug 3, 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 registry-enriched provider capability hints when a custom model shadows a provider model row
  • keep explicit custom display name, context window, and modalities authoritative while retaining noVisionModels augmentation
  • prevent the catalog from synthesizing generic reasoning levels for custom models declared through noReasoningModels

Fixes #962

Verification

  • bun scripts/test.ts tests/catalog-custom-model-metadata.test.ts tests/catalog-vision-sidecar-modalities.test.ts — 13 passed, 0 failed
  • bun run typecheck — passed
  • bun run lint:gui — passed
  • bun run privacy:scan — passed
  • bun run doctor:gui:if-changed — skipped as expected because no GUI files changed
  • live CLI check with an isolated OPENCODEX_HOME — emitted reasoningEfforts: [] for the duplicated Ollama custom model
  • bun run test — 7,889 passed and 10 skipped; one pre-existing failure remained in native-profile-drain-server.test.ts (Live/Realtime sideband retains main ownership...). The same failure reproduces on clean dev at 1d1c8038.

Checklist

  • Scope is focused and avoids unrelated refactors.
  • Docs or release notes were considered; none are needed for this internal catalog-correctness regression.
  • Security-sensitive areas were considered; this change does not modify authentication, secret handling, or security defaults.

Summary by CodeRabbit

  • New Features
    • Custom catalog models now inherit provider capabilities and registry metadata when not explicitly configured.
    • Explicit custom context limits and input modalities remain unchanged.
    • Vision sidecars continue to add image support where applicable.
  • Bug Fixes
    • Improved handling of context limits, reasoning capabilities, and modality metadata for custom models.

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
Watcher Bot
fix(catalog): preserve provider metadata on custom rows
4666235
@MarcTCruz
MarcTCruz requested review from Ingwannu, Wibias and lidge-jun as code owners August 3, 2026 19:44
@github-actions github-actions Bot added the bug Something isn't working label Aug 3, 2026
@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Custom catalog models now inherit provider capability metadata, including reasoning configuration and conditional context limits. Explicit custom context windows and input modalities remain authoritative. Tests cover metadata inheritance, vision-sidecar behavior, and catalog reasoning levels.

Changes

Catalog metadata inheritance

Layer / File(s) Summary
Provider metadata inheritance and custom overrides
src/codex/catalog/provider-fetch.ts, tests/catalog-custom-model-metadata.test.ts
Custom models apply provider capability hints while preserving explicit context and modality values. Tests verify inherited reasoning capabilities and empty catalog reasoning levels without a default.
Vision-sidecar metadata validation
tests/catalog-vision-sidecar-modalities.test.ts
Tests call gatherRoutedModels directly and verify image augmentation, preserved custom fields, and registry-provided reasoning efforts without a default effort.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant gatherRoutedModels
  participant ProviderRegistry
  participant CatalogEntries
  gatherRoutedModels->>ProviderRegistry: read provider capability hints
  ProviderRegistry-->>gatherRoutedModels: return reasoning and context metadata
  gatherRoutedModels->>CatalogEntries: provide merged custom model metadata
  CatalogEntries-->>gatherRoutedModels: expose reasoning levels and defaults
Loading

Possibly related PRs

  • lidge-jun/opencodex#478: Both changes cover provider capability propagation and vision modality handling.
  • lidge-jun/opencodex#653: This PR builds on provider discovery and registry metadata handling.
  • lidge-jun/opencodex#307: Both changes update custom model metadata propagation during catalog generation.

Suggested reviewers: lidge-jun, ingwannu

🚥 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 describes preserving provider capabilities on custom catalog models, which is the primary change.
Linked Issues check ✅ Passed The implementation and tests preserve provider metadata while keeping custom fields authoritative and preventing synthesized reasoning levels for affected models [#962].
Out of Scope Changes check ✅ Passed The changes are limited to catalog provider merging and focused tests for custom metadata, vision sidecars, and reasoning capabilities.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ 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.

coderabbitai[bot]
coderabbitai Bot reviewed Aug 3, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/catalog-custom-model-metadata.test.ts`:
- Around line 16-17: Add noReasoningModels containing "qwen-coder-3b" to the
provider fixture alongside modelReasoningEfforts in the relevant test setup.
Preserve the existing assertions that this model exposes no supported reasoning
levels and no default reasoning level, ensuring the regression path verifies
inherited noReasoningModels metadata.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 66a9e7cf-6a0b-4ce5-b2d0-c031201639dc

📥 Commits

Reviewing files that changed from the base of the PR and between cb8fcf3 and 4666235.

📒 Files selected for processing (3)
  • src/codex/catalog/provider-fetch.ts
  • tests/catalog-custom-model-metadata.test.ts
  • tests/catalog-vision-sidecar-modalities.test.ts

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread tests/catalog-custom-model-metadata.test.ts
Comment on lines +16 to +17
modelReasoningEfforts: { "qwen-coder-3b": [] },
},

@coderabbitai coderabbitai Bot Aug 3, 2026

Copy link
Copy Markdown
Contributor

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Cover the noReasoningModels regression path.

Line 16 sets modelReasoningEfforts to [], but this fixture does not declare noReasoningModels. A regression that stops inheriting noReasoningModels metadata can still pass.

Add noReasoningModels: ["qwen-coder-3b"] to this provider fixture. Keep the assertions for no supported reasoning levels and no default reasoning level.

Based on PR objectives: models in noReasoningModels with an empty effort list must expose neither generic reasoning levels nor a default reasoning level.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/catalog-custom-model-metadata.test.ts` around lines 16 - 17, Add
noReasoningModels containing "qwen-coder-3b" to the provider fixture alongside
modelReasoningEfforts in the relevant test setup. Preserve the existing
assertions that this model exposes no supported reasoning levels and no default
reasoning level, ensuring the regression path verifies inherited
noReasoningModels metadata.

Sorry, something went wrong.

Uh oh!

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

All reactions
This was referenced Aug 3, 2026
fix(providers): activate vision sidecar for NVIDIA NIM text-only models #964
Closed
fix(catalog): custom model rows inherit provider reasoning metadata #965
Closed
@Wibias
Wibias marked this pull request as draft August 3, 2026 20:59
@Wibias

Wibias commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Please put your Pull-Request on Ready for Review, once you are finished.

All reactions

Sorry, something went wrong.

Uh oh!

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

@lidge-jun lidge-jun mentioned this pull request Aug 4, 2026
stack 6/7: triage the overnight PRs and fix the #955 defects they found #973
Merged
@lidge-jun

lidge-jun commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Closing this in favour of #965, which fixes the same issue. Both landed within an hour of each other on #962 — that is a collision, not a fault, and the diff itself is clean work.

Why #965 won, concretely. #962 is about a custom row replacing a same-slug provider-derived row. #965 inherits from the row actually being replaced, so it also retains live /models metadata such as normalized capabilities. This PR instead recomputes catalogHintsFromProviderConfig() for every custom row (src/codex/catalog/provider-fetch.ts:785-809), including custom-only rows that never had a provider counterpart — broader than #962 requires, and it cannot retain discovered metadata because it rebuilds from config rather than inheriting.

The part that decided it: this PR changes tests/catalog-vision-sidecar-modalities.test.ts:102-126 from asserting "no registry reasoning metadata leaks onto an unmatched custom override" to expecting that leak, and removes three fetch should not be called guards. That assertion encodes a deliberate earlier decision from the #349/#344 vision-sidecar work. Rewriting it to accommodate a broader change is the kind of edit that should be its own proposal with its own argument, not a step inside a bug fix.

Verified rather than assumed — both branches were checked out and ablated. #965's ablation fails exactly one test, the #962 regression. This PR's ablation fails two, one of which is the rewritten contract above.

Your implementation does handle noReasoningModels correctly, and if you think the unmatched-custom-row behaviour should change, that is a real question worth raising on its own — I would read that issue.

#965 is carried in #973 (stack 6/6). Thanks for the fix, and sorry it was the duplicate.

All reactions

Sorry, something went wrong.

Uh oh!

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

@lidge-jun lidge-jun closed this Aug 4, 2026
@lidge-jun lidge-jun mentioned this pull request Aug 4, 2026
[Bug]: Custom model rows drop provider reasoning metadata from the Codex catalog #962
Closed
2 tasks done
chrisae9 pushed a commit to chrisae9/opencodex that referenced this pull request Aug 4, 2026
@lidge-jun
docs(triage): adjudicate the nine overnight PRs
f946d93
lidge-jun#967 found two real defects in my own lidge-jun#955 code and both verify at runtime: a
Team account with a monthly window could never recover because the predicate
picked its window by plan name while the parser picks by window duration, and
the probe's own token refresh was mistaken for an external credential
replacement.

lidge-jun#963 and lidge-jun#965 both claim lidge-jun#962; lidge-jun#965 wins because it inherits from the row it
actually replaces rather than recomputing config hints, and because lidge-jun#963
rewrites an existing regression contract to justify a broader change.

lidge-jun#966 is a fifth design for lidge-jun#914 that survives two of the four prior
falsifications but not all: mixed 5xx-then-rejection still loses the
attributable failure, and five newly-classified sidecar paths keep default
redirects, so a credential-visible 307 to a dead host still reads as neutral.
This was referenced Aug 4, 2026
fix(catalog): routed models never inherit the native template's context window (#992) #1028
Merged
fix(gui,combos): restore default effort picker and catalog combos #1092
Closed
test(catalog): pin the routed reasoning joint contract (#1100) + bug-grade triage unit #1119
Closed
fix(anthropic): preserve response model metadata #1122
Closed
fix(cursor): Add native image support for Cursor #1228
Closed
feat(vision): make sidecar reasoning model-aware #1238
Merged
test(catalog): pin the custom-provider reasoning-summary opt-in (#1100) #1274
Merged
feat(vision): filter sidecar describers by real image-input capability #1326
Merged
feat(providers): add Featherless preset #1317
Merged
fix(catalog): apply providerContextCaps.openai to native OpenAI rows #1435
Merged
This was referenced Aug 14, 2026
[Feature]: config-level retainModels allow-list so operators keep configured models in the authoritative live catalog #1690
Closed
feat(models): per-custom-model reasoning effort in the Models dashboard #1716
Merged
[Provider compatibility] Complete Z.AI GLM-5.3 Coding Plan metadata #1734
Closed
feat(cursor): native SelectedImage vision for verified models (data: only) #1742
Merged
This was referenced Aug 15, 2026
Routing capability evidence discards every catalog row (field-shape mismatch) #1796
Closed
llama.cpp: multimodal capability and dual-envelope /v1/models metadata are not ingested #1797
Closed
fix(routing): source capability evidence from explicit catalog provenance #1799
Merged
docs(devlog): record the codex-rs multi-agent v2 + history analysis #1812
Merged
fix(mimo): route Pro images through vision sidecar #2031
Merged
fix(cli): report model capabilities the way the runtime resolves them #2086
Merged
fix(catalog): allow per-provider/model opt-out of code_mode_only tool mode (#2106) #2112
Merged
@lidge-jun lidge-jun mentioned this pull request Aug 20, 2026
fix(codex): refresh native main account tokens #2222
Closed
4 of 8 tasks
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
docs(triage): adjudicate the nine overnight PRs
4c9ec8c
lidge-jun#967 found two real defects in my own lidge-jun#955 code and both verify at runtime: a
Team account with a monthly window could never recover because the predicate
picked its window by plan name while the parser picks by window duration, and
the probe's own token refresh was mistaken for an external credential
replacement.

lidge-jun#963 and lidge-jun#965 both claim lidge-jun#962; lidge-jun#965 wins because it inherits from the row it
actually replaces rather than recomputing config hints, and because lidge-jun#963
rewrites an existing regression contract to justify a broader change.

lidge-jun#966 is a fifth design for lidge-jun#914 that survives two of the four prior
falsifications but not all: mixed 5xx-then-rejection still loses the
attributable failure, and five newly-classified sidecar paths keep default
redirects, so a credential-visible 307 to a dead host still reads as neutral.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@lidge-jun lidge-jun Awaiting requested review from lidge-jun lidge-jun is a code owner
@Ingwannu Ingwannu Awaiting requested review from Ingwannu Ingwannu is a code owner
@Wibias Wibias Awaiting requested review from Wibias

Uh oh!

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

Assignees

No one assigned

Labels

bug Something isn't working

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.

3 participants

@MarcTCruz @Wibias @lidge-jun
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.