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

Đang mở
#64,231 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust, typescript, vscode
Lĩnh vực
desktop, devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Rust
Star
136k
Fork
21.6k
Merge trung bình
1 phút
Pull request đã merge (30 ngày)
997

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openai/codex

Tất cả issue của openai/codex

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.