Panel stuck on loading screen when multiple VS Code windows start at once (app-server exits, UI never recovers)

オープン
#64,231 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust, typescript, vscode
領域
desktop, devtools

調査の方向性

Start by tracing the VS Code extension's app-server startup and manager storage initialization, using the reported Initialize received log and RpcImportHook was already disposed stack trace as entry points. Check how simultaneous window activation and app-server exit are handled, then reproduce by restoring several VS Code windows together. Done means each panel loads or reports and recovers from an app-server failure.

索引モデルが issue の本文から書いたものです。

説明

app-server bug extension
What version of the IDE extension are you using?

openai.chatgpt 26.1120.50957 (darwin-arm64)

What subscription do you have?

pro 5x

Which IDE are you using?

VS Code 1.148.0

What platform is your computer?

Darwin 27.2.0 arm64 arm (macOS 27.2.1) - macbook pro m1 2021

What issue are you seeing?

VS Code restored 3 windows at startup, and each one activated the Codex extension and started its own codex app-server at the same moment.

In one window the Codex panel never got past the loading icon. That window's log ends at Initialize received and never reaches React root render requested / app routes mounted. Afterwards no codex app-server process was running at all, and the panel stayed frozen without retrying.

Log of the stuck window (ends here):

[info] [CodexMcpConnection] Spawning codex app-server
[info] [CodexMcpConnection] Initialize received id=1

The other two windows loaded, but both logged:

[extension-app-server-manager] Could not initialize manager storage
errorMessage="This RpcImportHook was already disposed."
  at L_e.getEntry (out/extension.js:237:44869)
  at L_e.call (out/extension.js:237:44944)
  at t$.setConnected (out/extension.js:1589:132460)

Expected: each window starts on its own, or the panel notices the app-server is gone and restarts it or shows an error.

Workaround: run Developer: Reload Window in the stuck window.

What steps can reproduce the bug?
  1. Open 3 VS Code windows with the Codex extension installed.
  2. Quit VS Code (Cmd+Q) and launch it again so all 3 windows are restored at once.
  3. Open the Codex panel in each window: in one of them it may stay stuck on the loading icon.
What is the expected behavior?

The Codex panel loads in every window, or shows an error and restarts the app-server.

Additional information

No response

主要言語
Rust
スター
136k
フォーク
21.6k
平均マージ
1分
マージ済み PR(30日)
997

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openai/codex のほかの issue

openai/codex の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。