VSCode Plugin bug: Could not open multiple windows via `Codex: New Codex Agent`
Open 💬 9 comments Opened Mar 25, 2026 by huangwb8
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the IDE extension are you using?
26.5324.21329、26.5323.20928、26.5318.11754
What subscription do you have?
API
Which IDE are you using?
VS Code
What platform is your computer?
Darwin 25.3.0 arm64 arm
What issue are you seeing?
- F1
- Click
Codex: New Codex Agent, a window was open. Strangely: - users could not check history conversations
- Working CPU/Memory consume increases than ever versions (I'm not sure whether this is the bug of vscode plugin or codex ). My Mac Mini M4 (16G mem) has to kill other application when use
Codex: New Codex Agent. However, if i useCodex: Open Codex Sidebar, that seemed normal. - Click
Codex: New Codex AgentAgain. Could not open a new conversation
What steps can reproduce the bug?
The same as What issue are you seeing?
What is the expected behavior?
- F1
- Click
Codex: New Codex Agent, a window was open. - users could check history conversations if they want
- Working CPU consume keeps normal
- Click
Codex: New Codex AgentAgain. A new conversation could be opened
Additional information
NULL
9 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I checked the repo and found some similar community reports.
The closest one is #15552. It reports that after version
26.5318.11754,Codex: New Codex Agentcould only open 1 window, which is very close to what I am seeing here.Also looks related:
Codex: New Codex Agentfailed withFailed to resume taskConversation not found/no rollout foundFor the side symptoms in this issue:
So from my side, this may not be an isolated bug. It looks more like the same extension regression family around
New Codex Agent, conversation creation, and thread/history state management.Leaving these issue links here for triage.
Yes, I also found this problem
This is open since March without any attention? I can have only one Codex agent open at a time, that's a big hit on productivity. I guess it's affecting only a small subset of users, otherwise it would have been fixed for sure.
I dug into the shipped VS Code extension bundle on macOS and this looks like an extension implementation issue rather than a keybinding/config issue.
Environment I checked:
openai.chatgpt26.513.21555cmd+ntochatgpt.newCodexPanelwhen a Codex custom editor is focusedWhat I found in the installed extension:
chatgpt.newCodexPanelis “Create a new Codex panel”: https://developers.openai.com/codex/ide/commandssupportsMultipleEditorsPerDocument: falsecreateNewPanel()always opens the same custom-editor URI:__('/extension/panel/new')/local/:conversationId(or/remote/:taskId), while the “new panel” URI is effectively a singletonchatgpt.newChatis sidebar-oriented in this build: the command title is “New Thread in Codex Sidebar”, its menu contribution is restricted to sidebar webviews, and the runtime sends{ type: 'new-chat' }tosidebarView.webviewRelevant bundled-code snippets from the installed extension:
New Codex Agentalways opens the same URI:newChattargets the sidebar webview:This matches the user-visible behavior exactly:
Cmd+Shift+P -> Codex: New Codex Agentorcmd+non a Codex tab does not create another fresh tab; it reuses/focuses the existing/extension/panel/newtab.New chatfrom a task tab routes back toward the singleton “new” panel/sidebar flow instead of spawning another independent tab.Likely fixes:
supportsMultipleEditorsPerDocument: trueRight now the docs wording and the shipped extension behavior do not line up for users expecting multiple Codex tabs/panels in VS Code.
I appear to be seeing the same user-visible behaviour with a newer VS Code extension on Windows using a Remote SSH extension host:
openai.chatgpt26.721.41059Codex: New Codex Agentopens or focuses the singleton new-agent editor.Separately, we built a small local-only VS Code bridge for a Markdown session catalogue. Unlike approaches that patch the installed Codex extension, this helper leaves the official extension unchanged and asks VS Code to open the observed local-conversation resource for a supplied session ID. It worked in our environment, including opening several different established sessions as editor tabs.
This does not establish that the observed resource is intended for third-party use. It may suggest that a small public
open existing sessioncommand could support catalogue and task-tracker integrations without relying on the observed private resource. The narrower API request was submitted ashttps://github.com/openai/codex/issues/35694.There is a built-in workaround for opening multiple existing Codex sessions, without patching the extension:
This matches the implementation detail noted above: established conversations have distinct conversation IDs, so VS Code can open them as separate editor resources.
Important limitation: this does not fix the reported bug in
Codex: New Codex Agent. That command still reuses/focuses the singleton new-agent panel instead of creating multiple fresh panels. It is only a practical workaround for established sessions.A similar workaround with screenshots was also documented in #20951: https://github.com/openai/codex/issues/20951#issuecomment-4517980706
Still reproducible in the current stable extension:
openai.chatgpt26.803.415151.132.0I also checked the installed extension bundle and can confirm the implementation described above is still present: the custom editor is registered with
supportsMultipleEditorsPerDocument: false, andcreateNewPanel()opens the same/extension/panel/newURI each time. That makes the panel behave as a singleton.The required workflow is multiple independently switchable Codex sessions, each with separate conversation context, inside one VS Code workspace/window. Using separate CLI terminals provides context isolation, but loses the panel's native inline-diff/review UX.
Still reproducible in the current VS Code extension, with a more precise description of the tab/session behavior below.
Scope
This concerns Codex opened as VS Code editor tabs, not the Codex sidebar.
Environment
openai.chatgpt26.820.60940Reproduction and actual behavior
Codex: New Codex Agent. This creates the initial "new session" editor tab.Primary expected behavior
The initial tab may begin as a temporary "new session" placeholder. Once a session is started successfully, that tab should become bound to the created session and be treated as that session's normal editor tab.
After that conversion, invoking New Session should create or open a fresh placeholder tab for the next session. It should not keep routing every later New Session action to the original, already-used tab.
Opening History sessions in separate tabs may be an intentional UX choice or preference. The primary defect is that the original placeholder never stops being treated as the singleton "new session" target, which blocks later session creation.
Implementation observation
Local inspection of the shipped bundle shows that
createNewPanel()always opens the same/extension/panel/newcustom-editor URI, while the provider is registered withsupportsMultipleEditorsPerDocument: false. This is consistent with VS Code repeatedly focusing the stale singleton placeholder instead of creating a usable new-session tab.No project files, credentials, or private logs are included.