Skip to content

v2.6.32 config.toml only 2 sections #71

Closed

Description

@guigeng
model_catalog_json = "~/.codex/opencodex-catalog.json"
model = "gpt-5.5"
model_provider = "opencodex"

# Auto-injected by opencodex
[model_providers.opencodex]
name = "OpenCodex Proxy"
base_url = "http://localhost:10100/v1"
wire_api = "responses"
requires_openai_auth = true

When I updated opencodex to v2.6.32
the config.toml only two sections added:

model_catalog_json = "~/.codex/opencodex-catalog.json"
# Auto-injected by opencodex
openai_base_url = "http://127.0.0.1:10100/v1"

Activity

  1. Wibias commented on Jul 9, 2026

    @Wibias
    Contributor

    So whats the problem exactly?

  2. lidge-jun commented on Jul 9, 2026

    @lidge-jun
    Owner

    This is expected behavior in v2.6.x, not a regression — the injection design changed intentionally.

    Older versions wrote a full [model_providers.opencodex] table and re-pointed model_provider. The problem: threads created while that was active got tagged with the opencodex provider id in Codex history, so an unclean shutdown (or uninstall) could leave chat history pointing at a provider that no longer exists.

    v2.6.x uses what we call history-safe injection (src/codex/inject.ts): on local installs the proxy points Codex's built-in openai provider at itself with a single root line —

    openai_base_url = "http://127.0.0.1:10100/v1"

    plus model_catalog_json for the model catalog. New threads keep their native provider tag, history is never remapped, and ocx stop restores everything cleanly. Threads that were re-tagged by older versions get migrated back once on first start. The old [model_providers.opencodex] section is only used for remote/LAN binds (they need an API-key header).

    So the two lines you're seeing are the complete, intended config. Routing works exactly as before — if you're seeing an actual routing failure (requests not reaching the proxy), please share ocx doctor output and I'll dig in. Otherwise I'll close this as working-as-intended in a few days.

  3. lidge-jun commented on Jul 9, 2026

    @lidge-jun
    Owner

    추가 문의가 없어 의도된 동작으로 정리하고 닫겠습니다. v2.6.x의 history-safe injection은 위 설명대로 정상입니다. 혹시 라우팅 실패 등 실제 문제가 발견되면 다시 열어주세요.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions