[VS Code extension] Support opening Codex sessions as full editor tabs
What variant of Codex are you using?
IDE Extension
What feature would you like to see?
Feature request
Please add support for opening Codex sessions as normal VS Code editor tabs, similar to how Claude Code works in VS Code.
Current behavior
In the VS Code extension, Codex appears constrained to a side chat / webview-style area or a split editor layout.
Even after using VS Code layout commands such as:
- Close editor group
- Maximize editor group
- Reset editor layout
- Zen Mode
- Full screen mode
Codex still does not provide the same full central editor workspace experience as Claude Code.
Expected behavior
Please add a command such as:
Codex: Open Session in Editor AreaCodex: Open Chat as Editor TabCodex: Move Session to Editor Tab
The Codex session should behave like a normal VS Code editor tab:
- It can occupy the main editor area
- It can be moved between editor groups
- It can be maximized
- It works naturally with Zen Mode
- It can be used as the primary coding-agent workspace
Why this matters
For long coding-agent sessions, the current layout is much less comfortable than Claude Code.
Claude Code can occupy the main editor area as a normal tab, which makes it easier to:
- Read long responses
- Review diffs
- Compare code
- Use the agent as the main coding workspace
- Work for long periods without feeling constrained by the side-panel layout
This UI difference makes users less likely to use Codex in VS Code, even if the model itself is useful.
Environment
- IDE: VS Code
- OS: Windows
- Codex extension version: [fill in version]
- Screenshot: attached
Additional information
_No response_
11 Comments
how can we bring this up? :D
Thanks! I think the main issue is that Codex currently does not feel like a first-class VS Code editor surface.
A possible way to bring this up internally would be to frame it as a VS Code UX parity request:
Request: Add a command like
Codex: Open Session in Editor Area/Open Codex as Editor Tab.Why: Claude Code can occupy the main editor area as a normal tab, while Codex feels constrained to a side-panel / webview-style layout. For long coding-agent sessions, this makes Codex harder to use as the primary workspace.
Expected UX:
I think this would make Codex much more usable for people who want to work with it for long coding sessions inside VS Code.
Sometimes, if i find the conversation in the chat interface, i can pin it.
Most times, I cannot find the conversation in the chat and have to find in Codex which doesn't support making it a tab.
It's very annoying. Claude is much better at this.
The issue is that Codex conversations are not consistently accessible from the normal ChatGPT chat interface.
Sometimes I can find the conversation there and pin it, which makes it much easier to continue working. But most of the time I cannot find it, so I have to use the Codex view inside VS Code. Since that view cannot be opened as a normal editor tab, the workflow becomes very frustrating.
For long coding sessions, Claude Code feels much better because it can occupy the main VS Code editor area. I think Codex needs either better conversation access from ChatGPT, or a proper “Open as editor tab” mode inside VS Code.
I found a practical workaround that can be automated by asking a local Codex agent to patch the installed VS Code extension.
This is not a replacement for native support, but it shows that the extension already has most of the required machinery. Existing local conversations can be opened in the VS Code editor area by dispatching the internal webview message
navigate-in-new-editor-tabwith a route like/local/<conversationId>.Below is a prompt that another Codex instance can run locally to create a side-by-side patched extension:
````text
You are running locally on my machine. Patch my installed OpenAI Codex VS Code extension by creating a separate local copy called MultiCodex.
Goal:
Create a second VS Code extension that runs next to the official Codex extension and adds a right-click "Open as tab" action for existing local Codex conversations.
Do not modify the official Codex extension directory.
Expected behavior:
openai.chatgptcontinues to work unchanged.local.multicodex.Open as tab.Open as tabopens that conversation as a normal VS Code editor tab.Open as tabto the top-right "new chat" button.Technical details:
Common local path:
~/.vscode/extensions/openai.chatgpt-*-linux-x64Common VS Code Remote SSH path:
~/.vscode-server/extensions/openai.chatgpt-*-linux-x64~/.vscode/extensions/local.multicodex-<version>-linux-x64package.jsonin the copied extension:nametomulticodexpublishertolocaldisplayNametoMultiCodex__metadata.idchatgpt.*->multicodex.*codexViewContainer->multicodexViewContainercodexSecondaryViewContainer->multicodexSecondaryViewContainerenabledApiProposalscontributes.chatSessionscontributes.configurationcontributes.languagescontributes.grammarscontributes.menus["chatSessions/newSession"]openai-codex->multicodex-codexextensions.getExtension("openai.chatgpt")->extensions.getExtension("local.multicodex")chatgpt.*command/context names ->multicodex.*The filename is content-hashed, usually something like:
webview/assets/use-navigate-to-local-conversation-*.jsKeep the original left-click behavior. Do not force left-click to open a tab.
The filename is usually something like:
webview/assets/local-conversation-thread-*.jsAdd a right-click context menu item to local conversation rows.
The menu item should be:
Open as tabIts action should dispatch:
``
js/local/${conversationId}vscodeApi.dispatchMessage("navigate-in-new-editor-tab", {
path:
,
``});
``
js
``{
id: "codex.localTaskRow.openAsTab",
defaultMessage: "Open as tab",
description: "Context menu item that opens a local thread in an editor tab"
}
Search for
actionId:\new-chat\`` in the webview assets.Add a right-click context menu item:
Open as tabIts action should dispatch:
``
js
``vscodeApi.dispatchMessage("open-vscode-command", {
command: "multicodex.newCodexPanel",
});
Important: if the context menu does not appear, wrap the custom button component in a real DOM element such as a
span, because some custom React button components may not forwardonContextMenu.Local:
~/.vscode/extensions/extensions.jsonRemote SSH:
~/.vscode-server/extensions/extensions.jsonAdd an entry for:
local.multicodexlinux-x64``
bash
``code --list-extensions --show-versions | grep -E 'openai.chatgpt|local.multicodex'
navigate-in-new-editor-tabOpen as tab/local/${conversationId}````
This gives a usable interim solution: the official Codex extension stays untouched, while a local side-by-side copy exposes "Open as tab" for existing sessions. Native support would still be much better, ideally as an official command and context-menu action.
I've found a workaround that doesn't require patching the extension for anyone who's interested :
<img width="1165" height="940" alt="Image" src="https://github.com/user-attachments/assets/4c71a244-31dc-4c17-a986-4b853472681c" />
Show Sessions<img width="1165" height="940" alt="Image" src="https://github.com/user-attachments/assets/28820caa-8083-4edc-a0ed-71b8e75ee12a" />
<img width="1165" height="940" alt="Image" src="https://github.com/user-attachments/assets/381c479e-2634-4233-a22a-5c1bc325355c" />
<img width="1165" height="940" alt="Image" src="https://github.com/user-attachments/assets/8c0613fe-3164-427a-96cc-e6befe3aac2c" />
<img width="1162" height="930" alt="Image" src="https://github.com/user-attachments/assets/5009f7da-f0d7-437d-9622-9d1f7367fc01" />
I use GitHub Copilot, Claude Code, and Kilo Code in VSCode, and they _all_ let me open an editor tab for the chat on a separate screen. It's honestly almost a dealbreaker of a feature for me--I'm not constantly sidescrolling or dragging sidebar widths around just so I can read my code.
found a thread in openai community requesting the same thing, with less attention drawn .... https://community.openai.com/t/feature-request-open-codex-session-as-an-editor-tab-detachable-window-in-vs-code/1382099
Very strange that it not have proper attention, since Claude Code extension have it and it's VERY USEFUL:
<img width="1914" height="1171" alt="Image" src="https://github.com/user-attachments/assets/5b5befca-9396-43cf-9e34-c192911c0e8e" />
But I think it's some sort of bug actually, seems like Anthropic did integration in VS Code in not native way for extensions that working with AI. So it show Claude in right agent panel and at the same time in Primary Side Bar and list of chats everywhere, but this thing allow to have tab like regular code tab
This is especially important for vertical and narrow-screen workflows.
The desired two-column layout is:
The Explorer must remain visible while Codex occupies all remaining width. Today, Codex is constrained to the Secondary Side Bar: leaving the editor area open wastes a large amount of space, while maximizing the Secondary Side Bar hides the Explorer. Neither option supports this workflow.
Claude Code already supports the desired arrangement by opening its conversation in the editor area. Please add an Open/Move Codex Session to Editor Area command and, if possible, remember that placement per workspace. This would make Codex much more usable on portrait monitors and when several VS Code windows are displayed side by side.
This is the main reason I still prefer Claude Code over Codex in VS Code.
Please allow Codex sessions to open as normal editor tabs instead of being limited to the sidebar.
For long coding sessions, the current sidebar layout is much less comfortable for reading, reviewing diffs, and working in Zen Mode.
This feature would significantly improve the VS Code experience.