[PR #15779] [CLOSED] launch: add codex model metadata catalog #62003

Closed
opened 2026-04-29 16:57:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15779
Author: @hoyyeva
Created: 4/23/2026
Status: Closed

Base: mainHead: codex/fix-codex-model-metadata-warning


📝 Commits (1)

  • 0cd8a0a launch: add codex model metadata catalog

📊 Changes

2 files changed (+355 additions, -15 deletions)

View changed files

📝 cmd/launch/codex.go (+123 -6)
📝 cmd/launch/codex_test.go (+232 -9)

📄 Description

Summary

  • generate ~/.codex/model.json for the selected Ollama model before launching Codex
  • wire the generated catalog into the ollama-launch Codex profile
  • derive model metadata from show data and shared cloud limits so Codex does not fall back to generic metadata

Testing

  • go test ./cmd/launch -run TestCodex|TestParseNumCtx|TestModelInfoContextLength|TestBuildCodexModelEntryContextWindow

User impact

This removes the model metadata fallback warning users are seeing in launched Codex sessions and provides better context window, modality, and reasoning metadata for Ollama models.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/15779 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 4/23/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/fix-codex-model-metadata-warning` --- ### 📝 Commits (1) - [`0cd8a0a`](https://github.com/ollama/ollama/commit/0cd8a0a442d2c2d134af083f2caf2a9e3ad20494) launch: add codex model metadata catalog ### 📊 Changes **2 files changed** (+355 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `cmd/launch/codex.go` (+123 -6) 📝 `cmd/launch/codex_test.go` (+232 -9) </details> ### 📄 Description ## Summary - generate ~/.codex/model.json for the selected Ollama model before launching Codex - wire the generated catalog into the ollama-launch Codex profile - derive model metadata from show data and shared cloud limits so Codex does not fall back to generic metadata ## Testing - go test ./cmd/launch -run TestCodex|TestParseNumCtx|TestModelInfoContextLength|TestBuildCodexModelEntryContextWindow ## User impact This removes the model metadata fallback warning users are seeing in launched Codex sessions and provides better context window, modality, and reasoning metadata for Ollama models. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 16:57:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#62003