[Design] Minimum safe Desktop composer compatibility across client updates
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Start with the package admission, HTTP controller, usage policy, routing preflight, and macOS RPC consumer boundary linked in the issue; then read the decisions requested for units A–E. The work is to agree on a consumer-facing contract, with several independently reviewable units and explicit dependencies. Done means owners resolve the security and consumer evidence questions and define acceptance against an actual submitted turn; symptom investigation remains in #6196 and identity revocation in #7582.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
[Design] Minimum safe Desktop composer compatibility across client updates
Area
Multiple areas
What are you trying to accomplish?
Keep a signed-in Codex Desktop usable when the main account has exhausted its allowance but an independently authorized pool account or external provider can serve the selected route. Keep actual usage, credits, spending restrictions and server-side account/provider limits authoritative.
This is the design/security follow-up requested in #7368's closing comment, before adding a dependency or desktop UI. #7368 remains closed. The remaining composer symptom is already tracked in #6196.
What prevents this today?
At dev c51b0b4:
- Windows admission pins one historical package version. Package identity, supported payloads and composer acceptance are separate claims.
- HTTP correction covers GET JSON usage and GET SSE usage streams; upgraded sockets remain opaque. POST subscriptions and broker frames are outside that contract.
- Account-wide consent lasts three minutes. Routing preflight cannot prove a conversation's selected provider.
- The macOS RPC shim can be attached without seeing gate-bearing messages. Synthetic tests and attachment alone do not establish composer coverage (#6196).
Current status (2026-10-28): identity revocation #7582, fresh package-proof binding #7709, and paired GUI-session authority #7775 are merged. These are bounded completed slices. The maintainer's current disposition explicitly leaves version-independent admission, broker transport, usage consumers and session consent subject to their owner/security decisions. This issue remains open; those merges do not authorize the remaining expansion or establish live composer acceptance.
What should OpenCodex do?
Agree on the smallest consumer-facing contract and review the following units independently. Several can proceed in parallel.
| Unit | Scope and actual dependency |
|---|---|
| A. Identity revocation | #7582 is merged into dev as bef4f50e281e5b3e240218c83fc4afc8cb8f8751. Preserve its stale-generation protection in later work. |
| B. Version-independent admission | Retain official family/publisher, canonical basename and App-entry checks. A backend-only slice, independent of C/D/E. |
| C. Bounded broker transport | Review dependency choice, fixed-host verified TLS/proxy routing, ordering, binary/text kind, heartbeat, backpressure and cancellation. Keep unrelated upgrades opaque. |
| D. Usage consumers | D-HTTP would add POST subscription handling after proving its cache consumer, without C. D-push requires C and the snapshot/cache contract. Both can retain the existing trial. |
| E. Session consent | Backend lifetime/revocation and capability negotiation can use existing GET/SSE without C/D-push. New UI depends on that contract and the requested design/security review. |
Code dependencies are C -> D-push and E-backend -> E-UI. Newer-package activation additionally needs B's admission decision; authoring the other units need not wait. Shared controller edits need integration checks, not a five-PR serial chain.
Only paths shown to populate or update the affected composer's gate/cache should enter correction:
| Surface | Evidence and minimum treatment |
|---|---|
GET /backend-api/wham/usage and GET /backend-api/wham/usage/stream |
Existing JSON/SSE contract; confirm the affected client consumes it. |
POST /backend-api/wham/usage/subscriptions |
Closed #7368 prototype/tests only. Prove its cache consumer; preserve renewal/generation metadata and request bytes. No WS dependency. |
Broker /backend-api/pages/realtime-broker/u<digits>/ws |
Prototype topic codex-work-usage-push-v1, usage.snapshot and recovered subscribe catchups only. Native consumer/host proof remains required; fixtures do not establish a universal WS or ws.chatgpt.com requirement. |
App-server account/rateLimits/read result / account/rateLimits/updated notification |
Existing macOS projection; only useful where those messages feed the gate. |
Partial pushes require a proven merge/retained-state contract; omitted protection data is not authorization. Unrelated topics, unknown schemas, protected states and non-success responses retain original content. UI projections never become pool capacity or billing evidence.
Owner/security decisions requested:
- May strict package identity and fail-closed payload validation replace exact-version admission? Define invalidation of any cached, completed package proof.
- Which consumer/cache evidence establishes the first supported surface? Leave unproved paths unclaimed.
- Approve or reject the WS dependency/host expansion, library and transport bounds. Define broker refresh: closing a shared socket also affects unrelated topics.
- Accept or reject account-wide runtime-session consent without per-conversation isolation. Define withdrawal, identity/routing changes, recovery/re-exhaustion, stop/crash and certificate deadlines. Require capability negotiation with older servers.
Example usage or interface
Main account exhausted + valid selected alternate route -> Desktop can submit -> the ordinary proxy dispatch admits or refuses using that route's real credentials and limits. A request that actually needs the exhausted native account still gets its genuine refusal.
Unknown identity/schema, withdrawal or protected spending -> original state remains authoritative. Report response production, native cache update and composer submission separately.
Alternatives or workarounds
Use the existing RPC projection where it reaches the consumer, or retain the existing short trial for a narrowly supported HTTP surface. Authless mode is a different workflow because it changes the signed-in account presentation. Provider inference routing alone cannot repair a turn the client never submits.
Keep cost small: no per-version/response model calls or bundle analysis; cheap path/method/topic rejection; bounded snapshot decoding; coalesced package probes with explicit invalidation; current identity/routing checks before output.
Additional context
Current source: package admission, HTTP controller, usage policy, routing preflight, RPC consumer boundary.
The closed #7368 diff is a prototype reference, not current-dev behavior or native end-to-end proof. No new implementation, dependency, UI, live configuration or exhausted-account acceptance run is included in this design request.
Related: #5941 is closed, #6196 open, #4878 closed as duplicate. Closed #7100 concerns pool spending priority. #4869 is closed as not planned and proposes a different per-thread Reserve override. Keep symptom investigation in #6196 and identity revocation in #7582.
Acceptance needs a genuinely exhausted signed-in account, eligible alternate route, proven consumer/cache update and an actual submitted turn. Also verify genuine native refusals, protected limits, identity changes and disable/restart/crash cleanup. Synthetic tests and transport counters alone are insufficient.
Checks
- I searched existing issues and documentation.
- This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
- I removed secrets and personal data.
- 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lidge-jun/opencodex
-
bug gui platform
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
lidge-jun/opencodex#9172 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
[Feature]: Include provider, model and account label in the `upstream failure` service.log linePosiblemente ocupada @EnesKartal la tomó hace 4 días. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
lidge-jun/opencodex#9057 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersPosiblemente ocupada @sedoll la tomó hace 6 días. Abiertocatalog provider provider-compatibility
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
lidge-jun/opencodex#9037 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug cli
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
lidge-jun/opencodex#9171 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
account-pool enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de lidge-jun/opencodex
Issues similares
-
manually bump balena-preload to ^19.0.6Posiblemente ocupada @shaunmulligan la tomó hoy. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 66/100
balena-io/balena-cli#3200 ·
Los mantenedores suelen responder en 1 día
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOMPosiblemente ocupada @olegius88 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 64/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
melgarafael/DeskcommCRM#5340 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
Los mantenedores suelen responder en 1 día