Skip to content

Codex sessions can't choose a model provider per session; the provider comes only from the global config.toml default #39

Closed

Description

@thedancingdeveloper

Seen 2026-11-13 while running the crypto research workers in Vogt (tracked locally as WI-4215).

What happens

  • Vogt's only Codex template launches codex ... -m <model>. A session can choose its model but not its model_provider, and there is no per-provider profile.
  • So every Codex session uses the global default in ~/.codex/config.toml (model_provider = "litellm-clawbay").
  • When that provider fails, every Codex worker fails with it. Since about 07:31Z, theclawbay has returned 429 through LiteLLM for both gpt-5.6-sol and gpt-5.6-luna. Workers stop each turn with exceeded retry limit, last status: 429 Too Many Requests or We're currently experiencing high demand.
  • The only way to move some workers to another configured provider (for example litellm-deepseek) is to change the global default. That moves every Codex session on the host, not just the ones intended.
  • Related: models outside vogt-model-catalog.json (for example deepseek-chat) have no catalog entry. The global model_context_window (850000) and model_auto_compact_token_limit (800000) don't fit a 128k-context model either, so even a provider switch needs more global edits.

Expected

A session can be started on a chosen provider and model without changing the global config for every other Codex session.

How to fix it is tracked separately.

Activity

  1. thedancingdeveloper commented on Nov 19, 2026

    @thedancingdeveloper
    Author

    No codex code change needed: per-session provider selection already works through config overrides. Vogt's Codex template should pass, per session:

    codex ... -m <model> -c model_provider=<id> -c model_context_window=<n> -c model_auto_compact_token_limit=<n>
    

    (<id> must exist under [model_providers.*] in config.toml; e.g. litellm-deepseek with 128000 / ~100000.) --profile also works. These override the global default for that session only. Pinned by test cli_overrides_select_session_provider_and_context_limits (core/src/config/config_loader_tests.rs) plus a FORK.md note, on branch fix/issue-39-session-provider (4b755ef). The Vogt-side template change is a separate Vogt item.

  2. thedancingdeveloper commented on Nov 21, 2026

    @thedancingdeveloper
    Author

    Fixed by PR #47 (codex batch), shipped in release fork-6ef285b4 and pinned in vogt (live on vogt-dev).

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions