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

Abierto
#8,762 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
40/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
backend, cli

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
16.9k
Forks
1.3k
Merge medio
1 d 4 h
PR fusionados (30 d)
814

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de lidge-jun/opencodex

Todos los issues de lidge-jun/opencodex

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.