Windows desktop WSL backend fails to refresh authentication when CODEX_REFRESH_TOKEN_URL_OVERRIDE is empty
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 70/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
調査の方向性
codex-rs/login/src/auth/manager.rs から始めてください。ここで refresh endpoint が選ばれます: override は変数が存在するたびに取得されるため、読み取りが「存在しない」と「存在するが空」を区別するか確認し、空の値を未設定として扱ってください。フォールバック経路が引き続きデフォルトの認証 endpoint を使用することを確認し、既存の override テストの隣に、空の CODEX_REFRESH_TOKEN_URL_OVERRIDE をカバーする unit test を追加してください。完了とは、変数が空の状態で refresh が成功することであり、レポートにある WSL の workaround と一致します。launcher 側の forwarding 修正は別の変更です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 135k
- フォーク
- 21.4k
- 平均マージ
- 1分
- マージ済み PR(30日)
- 998
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openai/codex のほかの issue
-
CLI config custom-model enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
bug CLI pets TUI
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
openai/codex#62005 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
app documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
openai/codex#61678 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
app bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
ImageGen generate-batch aborts valid JSONL jobs containing a Unicode line separator in poster textオープンbug imagen skills
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openai/codex#61442 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug ui
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
userFRM/egui-charts#3363 ·
メンテナーはふだん 1 日以内に返信
-
ada documentation mobile report
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
physicsdolphin/nv-uefi-unlocker#254 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kindraywind/rustnarok-client#1382 ·
メンテナーはふだん 1 日以内に返信
-
area:accessibility bug good first issue help wanted priority:p3-low size:small
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NecturaLabs/Canopy#209 ·
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信