[Feature]: Explicit Codex account namespace binding for failover combo targets

Open
#8,762 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
40/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
backend, cli

Research direction

The CLI target schema is in src/cli/combo-input.ts; start there to see where a combo target is validated, then the target type in src/combos/types.ts and the config shape in src/types/config.ts. Namespace resolution already exists in src/routing/router.ts — read how codexAccountNamespaces maps a name to an account and mirror it as a target-level binding. Done means a combo target can name the second account of the same model, quota failover selects it, usage identifies the served account, and existing physical-provider combos still validate.

Written by the indexing model from the issue text.

Description

account-pool enhancement
Goal / problem

Combos in 2.100.2 cannot explicitly target a Codex account namespace, although the same namespace works as a direct routed model.

For example, with two existing ChatGPT accounts and codexAccountNamespaces mapping openai-team to the second account, direct openai-team/<model> routes correctly. A failover combo cannot represent both accounts of the same model:

  • target.provider = "openai-team" fails validation because this namespace is not a physical key in config.providers.
  • target.provider = "openai" has no supported account-binding field. Repeating that provider/model is a duplicate, not an explicit second account.
  • The CLI target-file schema rejects an accountRef field, and target normalization does not preserve one.

Source locations: src/cli/combo-input.ts, src/combos/types.ts, src/types/config.ts; namespace resolution already exists in src/routing/router.ts.

Expected behaviour

Please support an explicit, validated account binding for combo targets, or resolve an existing account namespace as a target. Preserve the account through selection, upstream routing, usage attribution and account-scoped cooldown. Missing or exhausted bindings should follow the existing failover contract without silently using the default account.

Acceptance: two existing accounts of the same model remain independently addressable; a quota failure in the first can select the specified second account; usage identifies the served account; existing physical-provider combos remain compatible. No new login, account merging or default-account change should be required.

This request is based on source inspection. No credentials, account identifiers or private configuration are included.

Dominant language
TypeScript
Stars
16.9k
Forks
1.3k
Avg merge
1d 4h
Merged PRs (30d)
814

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lidge-jun/opencodex

All issues in lidge-jun/opencodex

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.