You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[VS Code extension] Support opening Codex sessions as full editor tabs #20951
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 Area
Codex: Open Chat as Editor Tab
Codex: 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
Reacted by Harun Brunner, Mustafa Adam, Tanguille, danpetruk, Isaac Wang, Tom Higginson, Ivan Zvonar, Hilbert Yang (Haobo), ashley, Gert van Dijk and 52 more
Reacted by Harun Brunner, Mustafa Adam, daiki chiba, Liam, achromichat, Arnaud ROUGETET, bigben446, Salman Shaikh and James Voight
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:
Codex session can open as a normal VS Code editor tab
It can be moved between editor groups
It works with Maximize Editor Group and Zen Mode
It can occupy the central editor area without feeling like a sidebar/chat panel
I think this would make Codex much more usable for people who want to work with it for long coding sessions inside VS Code.
Reacted by achromichat, moodelymoo, Abdulloh Kafa Bihi, Priyansh Khodiyar, Istvan Ballok, parkyjmit and opinionateddrone
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.
Reacted by achromichat, Abdulloh Kafa Bihi, Davide Del Grande, Jiawei Fang and opinionateddrone
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-tab with a route like /local/<conversationId>.
Below is a prompt that another Codex instance can run locally to create a side-by-side patched extension:
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:
- Official `openai.chatgpt` continues to work unchanged.
- New copied extension is registered as `local.multicodex`.
- Left-click on a conversation keeps the original sidebar behavior.
- Right-click on a local conversation row shows `Open as tab`.
- Clicking `Open as tab` opens that conversation as a normal VS Code editor tab.
- If possible, also add right-click `Open as tab` to the top-right "new chat" button.
Technical details:
1. Locate the installed Codex extension.
Common local path:
`~/.vscode/extensions/openai.chatgpt-*-linux-x64`
Common VS Code Remote SSH path:
`~/.vscode-server/extensions/openai.chatgpt-*-linux-x64`
2. Copy it to a new extension directory with the same version, for example:
`~/.vscode/extensions/local.multicodex-<version>-linux-x64`
3. Patch `package.json` in the copied extension:
- set `name` to `multicodex`
- set `publisher` to `local`
- set `displayName` to `MultiCodex`
- set a new stable UUID in `__metadata.id`
- replace command/context/view ids:
- `chatgpt.*` -> `multicodex.*`
- `codexViewContainer` -> `multicodexViewContainer`
- `codexSecondaryViewContainer` -> `multicodexSecondaryViewContainer`
- remove contribution points that conflict with the official extension:
- `enabledApiProposals`
- `contributes.chatSessions`
- `contributes.configuration`
- `contributes.languages`
- `contributes.grammars`
- `contributes.menus["chatSessions/newSession"]`
4. Patch runtime strings in the copied extension:
- `openai-codex` -> `multicodex-codex`
- `extensions.getExtension("openai.chatgpt")` -> `extensions.getExtension("local.multicodex")`
- relevant runtime `chatgpt.*` command/context names -> `multicodex.*`
5. Find the webview bundle that contains local conversation navigation.
The filename is content-hashed, usually something like:
`webview/assets/use-navigate-to-local-conversation-*.js`
Keep the original left-click behavior. Do not force left-click to open a tab.
6. Find the webview bundle that renders local conversation rows.
The filename is usually something like:
`webview/assets/local-conversation-thread-*.js`
Add a right-click context menu item to local conversation rows.
The menu item should be:
`Open as tab`
Its action should dispatch:
```js
vscodeApi.dispatchMessage("navigate-in-new-editor-tab", {
path: `/local/${conversationId}`,
});
```
7. If the existing context-menu helper expects intl message objects, use:
```js
{
id: "codex.localTaskRow.openAsTab",
defaultMessage: "Open as tab",
description: "Context menu item that opens a local thread in an editor tab"
}
```
8. Optional: patch the top-right "new chat" button.
Search for `actionId:\`new-chat\`` in the webview assets.
Add a right-click context menu item:
`Open as tab`
Its 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 forward `onContextMenu`.
9. Register the copied extension in VS Code’s extension registry.
Local:
`~/.vscode/extensions/extensions.json`
Remote SSH:
`~/.vscode-server/extensions/extensions.json`
Add an entry for:
- identifier id: `local.multicodex`
- uuid: the new stable UUID
- version: same as the copied Codex extension
- location path: copied extension directory
- targetPlatform: `linux-x64`
10. Verify:
- run syntax checks on patched JS files
- confirm both extensions are visible:
```bash
code --list-extensions --show-versions | grep -E 'openai.chatgpt|local.multicodex'
```
- confirm patched webview assets contain:
- `navigate-in-new-editor-tab`
- `Open as tab`
- `/local/${conversationId}`
- reload VS Code or reconnect to the Remote SSH window.
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.
Reacted by Preston Logan, Andri Braun and Marivaldo Júnior
I've found a workaround that doesn't require patching the extension for anyone who's interested :
Open the Agent Chat sidebar
Right-click in the Chat sidebar and uncheck Show Sessions
Click the Session History button
Select a session, any of them. If you can't see the session you need, select any visible session. You'll be able to select another session once the tab is open
Note
Sometimes Codex takes forever to load or doesn't load properly. Just restart VSCode and everything should be fine
You can now use Codex in a regular tab ! You can also close the Chat sidebar. You can find your other sessions by clicking the Session History button
Reacted by Liam, Kent Matsuura, Chantal Pellegrini, Xue Zhenliang, Ayanami-Yu, spark190, Veeryan Bhatia, Ilya, Hareendran MG, Cubee and 6 more
Reacted by Hareendran MG, siyuyang13meituan-boop and Carolus
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.
Reacted by Kai Wu, Mohamed Nadjib MAMI, spark190, Alexandr Makurin, Chnyuzz, Magda, Sergey Zhidkov, Davide Del Grande, Lucas Czech and opinionateddrone
Very strange that it not have proper attention, since Claude Code extension have it and it's VERY USEFUL:
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
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.
For anyone looking for a practical solution today: I built Codex Extras, a small open-source VS Code extension for this workflow.
It adds a Codex Chats panel that keeps local conversations easy to find (current workspace first, ordered by recent activity). Select any chat to open it as a pinned editor tab—so it can use the main editor area, editor groups, and narrow/portrait layouts naturally.
It also adds an optional New Codex Agent toolbar button. No telemetry or network requests, and the official Codex extension remains unchanged.
Crazy that this request for such a basic feature is still open 3 months later. Due to recent outages/issues with another company, and their latest model being pretty bad, I decided to test drive Codex and it lacking this functionality is a dealbreaker for me.
This is also important for running multiple independent sessions in the same repository window, not only for reclaiming editor width.
In stable openai.chatgpt 26.803.41515, I need to keep several separate conversation contexts open and switch between them while retaining access to the same workspace. Codex: New Codex Agent currently focuses the existing singleton panel instead of creating a new editor tab, and the toolbar New Chat control does nothing.
The CLI can provide separate terminal sessions, but it is not an equivalent workflow: the panel/editor view gives easier access to native inline diffs and review. Normal VS Code editor tabs—one per Codex session, movable between editor groups—would preserve that UX while allowing genuinely independent parallel contexts. This overlaps with #15807 and #12098.
This is causing problems in the whole workflow if you need to work with many parallel agents in a repo, as @elijahchancey said current functionality focuses the existing singleton panel instead of creating a new tab for the agent.
+1, Please! Claude Code has this, and myself & colleagues would happily switch to Codex if the plugin had this foundational feature. It would not take long for an agent to code it internally.
Just found this thread out of desperation. The workflow with Codex is so poor compared to Claude. And it's a shame because the engine itself is at least on par and some times better for many tasks. It is embarassing that nothing is done to support the same workflow... you could even vibe code the actual feature, c'mon!!!
Subject: Urgent UX Improvements Needed — Codex VS Code Extension Falls Behind Claude Code
Dear OpenAI Team,
Please take the developer experience of the Codex VS Code extension more seriously.
VS Code is one of the most widely used development environments, yet the official Codex extension still lacks basic session-management capabilities that competing tools such as Claude Code already provide.
As a developer using both tools, I am experiencing these limitations firsthand:
Editor-based sessions: Codex conversations should open naturally as independent tabs in the main editor area.
Meaningful tab titles: Editor tabs should display the actual conversation names rather than the generic "Codex" label.
Seamless session restoration: Closing a conversation tab should not make reopening that same session in the editor difficult.
Consistent session navigation: Clicking an existing conversation in the sidebar should allow it to open directly in the main editor.
Multiple concurrent sessions: Developers should be able to switch between independent conversations as easily as switching between source-code files.
These are not advanced features. They are fundamental usability expectations in a modern IDE.
Similar concerns have already been reported publicly, yet the experience remains unnecessarily cumbersome.
A powerful AI coding model loses much of its practical advantage when the surrounding development experience creates constant friction.
Please prioritize these improvements, provide a clear development roadmap, and consider how developers actually use Codex throughout their working day.
I genuinely want Codex to succeed. But usability matters just as much as model capability, and competitors are already setting a higher standard in this area.
I looked inside the current extension (openai.chatgpt 26.51021.22027) to see how far this is. The good news: most of it is already built.
Already there
A custom editor, chatgpt.conversationEditor ("Codex Chat"), for openai-codex: URIs. So a conversation can already live in a normal editor tab.
A chatSessions contribution (openai-codex). That is why VS Code's own Sessions list offers Open as Editor (the workaround @marivaldojr posted).
Inside the webview, a navigate-in-new-editor-tab message that opens a conversation path with vscode.open. Navigation already uses it in some cases. @danpetruk's patch works by sending it, and Codex Extras opens the same kind of tab.
What's missing is mostly a door into it
Open in editor tab on each conversation in the Codex sidebar list (right-click), plus a command with the same name for the active conversation.
New Codex Agent (chatgpt.newCodexPanel) should open a new tab every time, not focus the one that's already open. That's what @elijahchancey and @ilgaur need for parallel agents.
Tab title = conversation title, not "Codex", so five open tabs can be told apart.
Reopen after reload. Tabs that were open come back as the same conversations. This matters most to people on narrow or portrait screens (@zhanghoule-max).
Questions for the team
If the same conversation is open in the sidebar and in a tab, is one of them read-only, or do both stay live? I'd keep both live and fill one composer at a time.
Default placement: keep the sidebar as the default and make the tab opt-in. Someone who never opens a tab sees no change.
Items 1 and 3 look small given the plumbing above. Item 2 changes what an existing command does, so it may need a setting. One update from the team on whether this is planned would also calm this thread down a lot.
Reacted by Dan Mathisen, tahribadr and wash-oliveira
Activity
21Luck21 commentedon May 6, 2026
how can we bring this up? :D
guanjen375 commentedon May 6, 2026
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.
MustafaAdam commentedon May 7, 2026
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.
guanjen375 commentedon May 7, 2026
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.
danpetruk commentedon May 13, 2026
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:
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.
tarkadia commentedon May 22, 2026
I've found a workaround that doesn't require patching the extension for anyone who's interested :
Show SessionsNote
Sometimes Codex takes forever to load or doesn't load properly. Just restart VSCode and everything should be fine
andrew-braun commentedon Jun 5, 2026
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.
kaiwu-astro commentedon Jun 9, 2026
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
Hronom commentedon Jul 8, 2026
Very strange that it not have proper attention, since Claude Code extension have it and it's VERY USEFUL:

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
zhanghoule-max commentedon Jul 20, 2026
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.
buildwithyang commentedon Jul 20, 2026
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.
Hronom commentedon Jul 26, 2026
For anyone looking for a practical solution today: I built Codex Extras, a small open-source VS Code extension for this workflow.
It adds a Codex Chats panel that keeps local conversations easy to find (current workspace first, ordered by recent activity). Select any chat to open it as a pinned editor tab—so it can use the main editor area, editor groups, and narrow/portrait layouts naturally.
It also adds an optional New Codex Agent toolbar button. No telemetry or network requests, and the official Codex extension remains unchanged.
Source: https://github.com/Netroforge/codex-extras
Hopefully this helps while native support is still pending. Feedback and contributions are welcome!
JDE-Projects commentedon Aug 1, 2026
Crazy that this request for such a basic feature is still open 3 months later. Due to recent outages/issues with another company, and their latest model being pretty bad, I decided to test drive Codex and it lacking this functionality is a dealbreaker for me.
elijahchancey commentedon Aug 10, 2026
This is also important for running multiple independent sessions in the same repository window, not only for reclaiming editor width.
In stable
openai.chatgpt 26.803.41515, I need to keep several separate conversation contexts open and switch between them while retaining access to the same workspace. Codex: New Codex Agent currently focuses the existing singleton panel instead of creating a new editor tab, and the toolbar New Chat control does nothing.The CLI can provide separate terminal sessions, but it is not an equivalent workflow: the panel/editor view gives easier access to native inline diffs and review. Normal VS Code editor tabs—one per Codex session, movable between editor groups—would preserve that UX while allowing genuinely independent parallel contexts. This overlaps with #15807 and #12098.
bigben446 commentedon Aug 11, 2026
+1
marivaldojr commentedon Aug 21, 2026
I've found a simple workaround to open an existing session:
Open the Agent Sidebar
Chat: Open ChatOpen as Editor
That chat is opened as an Editor Tab
ilgaur commentedon Aug 25, 2026
This is causing problems in the whole workflow if you need to work with many parallel agents in a repo, as @elijahchancey said current functionality focuses the existing singleton panel instead of creating a new tab for the agent.
yourlocalcodemonkey commentedon Sep 5, 2026
+1, Please! Claude Code has this, and myself & colleagues would happily switch to Codex if the plugin had this foundational feature. It would not take long for an agent to code it internally.
Larleyt commentedon Sep 7, 2026
+1, Will this ever be done? The current UX flow is incredibly inconvenient.
JoaoVictorDaijo commentedon Sep 10, 2026
+1 I just migrated to OpenAi to test Astra but I'm going back to Anthropic next month, the Codex extension is so bad compared to Claude Code...
lczech commentedon Oct 5, 2026
+1
apostolovbg commentedon Oct 11, 2026
I am sick and tired of MS removing features. I will either get my Open as Editor back, or move completely to Claude.
davidedg commentedon Oct 18, 2026
Just found this thread out of desperation. The workflow with Codex is so poor compared to Claude. And it's a shame because the engine itself is at least on par and some times better for many tasks. It is embarassing that nothing is done to support the same workflow... you could even vibe code the actual feature, c'mon!!!
yaldogan commentedon Nov 1, 2026
To: OpenAI Codex Product & VS Code Extension Team
Subject: Urgent UX Improvements Needed — Codex VS Code Extension Falls Behind Claude Code
Dear OpenAI Team,
Please take the developer experience of the Codex VS Code extension more seriously.
VS Code is one of the most widely used development environments, yet the official Codex extension still lacks basic session-management capabilities that competing tools such as Claude Code already provide.
As a developer using both tools, I am experiencing these limitations firsthand:
These are not advanced features. They are fundamental usability expectations in a modern IDE.
Similar concerns have already been reported publicly, yet the experience remains unnecessarily cumbersome.
A powerful AI coding model loses much of its practical advantage when the surrounding development experience creates constant friction.
Please prioritize these improvements, provide a clear development roadmap, and consider how developers actually use Codex throughout their working day.
I genuinely want Codex to succeed. But usability matters just as much as model capability, and competitors are already setting a higher standard in this area.
Please take action. Developer experience matters.
A concerned Codex and ChatGPT user.
seanharmer commentedon Nov 8, 2026
Another vote for this please. It should be trivial to add but would be a big workflow improvement.
davidedg commentedon Nov 8, 2026
Not sure why this is not getting the attention it deserves. Not even a comment from @codex / OpenAI people.
balabommablock-cpu commentedon Nov 10, 2026
I looked inside the current extension (
openai.chatgpt26.51021.22027) to see how far this is. The good news: most of it is already built.Already there
chatgpt.conversationEditor("Codex Chat"), foropenai-codex:URIs. So a conversation can already live in a normal editor tab.chatSessionscontribution (openai-codex). That is why VS Code's own Sessions list offers Open as Editor (the workaround @marivaldojr posted).navigate-in-new-editor-tabmessage that opens a conversation path withvscode.open. Navigation already uses it in some cases. @danpetruk's patch works by sending it, and Codex Extras opens the same kind of tab.What's missing is mostly a door into it
chatgpt.newCodexPanel) should open a new tab every time, not focus the one that's already open. That's what @elijahchancey and @ilgaur need for parallel agents.Questions for the team
Items 1 and 3 look small given the plumbing above. Item 2 changes what an existing command does, so it may need a setting. One update from the team on whether this is planned would also calm this thread down a lot.