Windows desktop WSL backend fails to refresh authentication when CODEX_REFRESH_TOKEN_URL_OVERRIDE is empty
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 70/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- authentication
Línea de trabajo
Empieza en codex-rs/login/src/auth/manager.rs, donde se elige el endpoint de refresh: el override se toma siempre que la variable exista, así que comprueba si la lectura distingue entre ausente y presente pero vacía y trata un valor en blanco como no establecido. Confirma que la ruta de fallback sigue usando el endpoint de autenticación predeterminado y añade una prueba unitaria que cubra un CODEX_REFRESH_TOKEN_URL_OVERRIDE vacío junto a las pruebas de override existentes. Hecho significa que el refresh se completa correctamente con la variable vacía, coincidiendo con el workaround de WSL del informe; la corrección de reenvío en el lado del launcher es un cambio aparte.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
The Windows desktop app becomes stuck on “Failed to load account information” when its WSL backend inherits an empty CODEX_REFRESH_TOKEN_URL_OVERRIDE and needs to refresh saved authentication.
On the affected installation, removing only this empty override from the backend environment, while keeping the working proxy configuration unchanged, allowed authentication to refresh automatically and restored the desktop UI.
Environment
- Microsoft Store package:
OpenAI.Codex 26.1111.2228.0(package version, not the About-dialog version). - Windows 11, x64.
- Backend: WSL2, Ubuntu 26.04.
- Authentication: ChatGPT sign-in.
- HTTP/HTTPS proxy configured in the WSL login-shell environment.
Observed behavior
The web app worked, but the Windows desktop app displayed:
Failed to load account information. Please check your network connection and try again.
Inspection of the actual desktop-launched WSL backend showed:
CODEX_REFRESH_TOKEN_URL_OVERRIDE=
HTTP_PROXY=http://127.0.0.1:7897
HTTPS_PROXY=http://127.0.0.1:7897
The override was present with an empty value, rather than absent. The backend's WSLENV also included its name. Static inspection of the installed desktop launcher found that it adds this authentication override to the WSL forwarding list.
Selected log fields before the workaround:
2026-11-15T10:30:20.067Z durationMs=475 errorCode=-32603 method=account/read
2026-11-15T10:31:46Z ERROR codex_login::auth::manager Failed to refresh token: builder error
Adding the WSL proxy variables and restarting did not resolve the account-loading failure. The backend had the proxy values, and an unauthenticated request to the authentication service through that proxy returned HTTP 200, but token refresh still failed with builder error.
Trigger conditions / reproduction
- Use the Windows desktop app with its backend configured to run in WSL.
- Have saved ChatGPT authentication that needs refreshing.
- Launch the backend with
CODEX_REFRESH_TOKEN_URL_OVERRIDEpresent but empty. - Observe token-refresh failures and the account-loading error screen.
These conditions were observed on the affected installation; the successful recovery below used the existing credentials.
Workaround and recovery
Add this to the WSL login-shell profile used by the desktop launcher:
if [ -z "${CODEX_REFRESH_TOKEN_URL_OVERRIDE-}" ]; then
unset CODEX_REFRESH_TOKEN_URL_OVERRIDE
fi
After restarting the desktop app:
- The actual backend no longer had the empty override.
- The proxy settings were unchanged.
- Saved authentication refreshed automatically.
account/readsucceeded.- The normal desktop UI and conversation history loaded.
Selected log fields after the workaround:
2026-11-15T10:31:55.835Z durationMs=4 errorCode=null method=account/read
Expected behavior / suspected cause
An empty optional refresh-endpoint override should behave as unconfigured and fall back to the normal authentication endpoint.
The refresh endpoint selection code uses the override whenever the environment variable exists, without filtering empty strings. This is consistent with constructing a refresh request using an empty URL and reporting builder error.
Please consider ignoring blank override values in endpoint selection and avoiding forwarding unset optional overrides as empty values in the Windows-to-WSL launcher.
Related symptom report: #61123. This report identifies a specific empty-override failure; it does not establish that the related report has the same cause.
- Lenguaje dominante
- Rust
- Estrellas
- 135k
- Forks
- 21.4k
- Merge medio
- 1 min
- PR fusionados (30 d)
- 998
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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 openai/codex
-
CLI config custom-model enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
bug CLI pets TUI
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
openai/codex#62005 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
app documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
openai/codex#61678 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
app bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
ImageGen generate-batch aborts valid JSONL jobs containing a Unicode line separator in poster textAbiertobug imagen skills
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
openai/codex#61442 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de openai/codex
Issues similares
-
bug ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
userFRM/egui-charts#3363 ·
Los mantenedores suelen responder en 1 día
-
ada documentation mobile report
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
physicsdolphin/nv-uefi-unlocker#254 · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
kindraywind/rustnarok-client#1382 ·
Los mantenedores suelen responder en 1 día
-
area:accessibility bug good first issue help wanted priority:p3-low size:small
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NecturaLabs/Canopy#209 ·
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día