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: one-click editor tabs for multiple simultaneous chats #53071
My main goal is the flexibility to keep multiple independent Codex chats open at the same time in VS Code editor tabs.
I want to be able to:
Keep several conversations open simultaneously, each with its own context.
Switch between chats using normal editor tabs.
Move chats between editor groups and arrange them side by side.
Open another chat with one click while keeping the existing chats open.
Please expose “New Codex Agent” directly in the editor title bar so I can create additional chat tabs with one click.
Clicking the Codex icon in the editor title bar currently opens the sidebar. The Claude Code extension's editor-tab workflow is a useful reference for this flexibility.
Codex already supports opening an agent in an editor tab through the Command Palette:
Codex: New Codex Agent
However, opening the Command Palette and searching for this command every time adds unnecessary friction.
A setting to choose whether the existing Codex toolbar button opens the sidebar or a new editor tab would also address this.
Additional information
In the installed extension's package.json:
The editor/title button invokes chatgpt.openSidebar.
The existing “New Codex Agent” command is chatgpt.newCodexPanel.
The request is to make this existing editor-tab capability directly accessible from the toolbar.
Reacted by Tim Noetzel, Aashish Satyajith, Luis, KusBeoms, elkh510, Anindya Mahajan, Evgenii Zakharin, tssdhar-cell, Rupert S T Fynn, nebius-fmarceau and 1 more
changed the title [-]VS Code extension: add one-click access to new chats in editor tabs[/-][+]VS Code extension: one-click editor tabs for multiple simultaneous chats[/+]on Oct 11, 2026
I would also like this to be a supported one-click workflow. Reproduced on openai.chatgpt26.1007.21434, macOS 26.5.2 / Apple Silicon, VS Code 1.140.0.
The desired interaction is: click the Codex logo in the editor title bar, get a fresh Codex chat tab, and leave all existing chat tabs open. This is useful when working across several independent investigations in one VS Code workspace.
A local workaround rebinds the editor-title action from chatgpt.openSidebar to chatgpt.newCodexPanel, retaining the Codex icon. It additionally gives each draft panel a unique resource identity, since rebinding the button alone still reuses the existing tab. The user confirmed successive clicks now open separate tabs. The command defect is tracked in #15807; repeated onboarding is tracked in #25146.
Suggested official UX:
Expose an obvious New Codex chat in editor tab action directly in the editor toolbar, with a tooltip that names that action.
Allow the existing editor-title logo to be configured to open a fresh tab or focus the sidebar. A separate new-chat button is also a reasonable default; existing sidebar workflows should remain accessible.
Ensure each explicit new-chat action creates an independent draft/session and never requires already-completed onboarding again.
The activity-bar Codex icon can continue to focus the sidebar. The request concerns the editor-title toolbar and the explicit new-chat command.
Open Codex in an editor tab instead of the sidebar
You can change the existing Codex button behavior by modifying the extension's package.json.
Steps:
Open your VS Code extensions directory:
Windows:C:\Users\<username>\.vscode\extensions\
macOS/Linux:~/.vscode/extensions/
Find the folder starting with openai.chatgpt-.
Open its package.json.
Navigate to contributes → menus → editor/title.
Find:
"command": "chatgpt.openSidebar"
Replace it with:
"command": "chatgpt.newCodexPanel"
Save and restart VS Code.
Result: Clicking the Codex button in the editor's top-right toolbar now opens Codex in an editor tab instead of the sidebar.
Optional — Restore the original Codex icon:
In contributes → commands, find chatgpt.newCodexPanel and replace its icon value with the one used by chatgpt.openSidebar.
Remaining limitation compared to Claude Code
Unlike Claude Code, which automatically opens in a separate editor group on the right and reuses the existing tab on subsequent clicks, Codex opens in the currently active editor group.
Feature request: Codex should support the same behavior as Claude Code—open on the right by default and reuse the existing tab instead of creating new ones.
Note: This is an unofficial workaround, and extension updates may overwrite the package.json changes.
I can reproduce this on macOS (Apple Silicon) with the Codex VS Code extension 26.1111.21308. In the same editor group, run Codex: New Codex Agent, then run it again. VS Code focuses the existing Codex editor tab instead of opening a second independent tab. I also reproduced this after starting a conversation in the first tab.
Please let each invocation open a separate Codex conversation in the same VS Code editor tab bar, so I can keep two or three conversations open and switch between them by clicking their tabs.
Consigo reproduzir esse problema no macOS (Apple Silicon) com a extensão Codex para VS Code versão 26.1111.21308. No mesmo grupo de editores, execute o comando Codex: New Codex Agente, em seguida, execute-o novamente. O VS Code mantém o foco na aba do editor Codex existente, em vez de abrir uma segunda aba independente. Também consegui reproduzir o problema após iniciar uma conversa na primeira aba.
Por favor, permita que cada invocação abra uma conversa separada do Codex na mesma barra de abas do editor VS Code, para que eu possa manter duas ou três conversas abertas e alternar entre elas clicando em suas respectivas abas.
I agree with this enhancement, especially the comparison to Claude Code's editor-tab workflow. Having to use a separate Command Palette command to open a chat tab adds unnecessary friction.
One addition I'd like to see is for the same editor-tab preference to apply to the sidebar's New Chat button and conversation history. On Windows, opening a new Codex panel leaves the current sidebar conversation in place and starts a separate blank chat in the editor. That makes the two surfaces feel disconnected.
Building on the original proposal, it would help if:
Choosing editor tabs as the default also made New Chat open a fresh tab while keeping existing chat tabs open.
Selecting a conversation in the sidebar opened or focused its editor tab, so the sidebar could serve as history/navigation.
The current sidebar conversation could be moved into an editor tab with its history and context preserved.
These would make the one-click tab workflow proposed here feel consistent across the extension.
Activity
[-]VS Code extension: add one-click access to new chats in editor tabs[/-][+]VS Code extension: one-click editor tabs for multiple simultaneous chats[/+]anindyamahajan commentedon Oct 13, 2026
I would also like this to be a supported one-click workflow. Reproduced on
openai.chatgpt26.1007.21434, macOS 26.5.2 / Apple Silicon, VS Code 1.140.0.The desired interaction is: click the Codex logo in the editor title bar, get a fresh Codex chat tab, and leave all existing chat tabs open. This is useful when working across several independent investigations in one VS Code workspace.
A local workaround rebinds the editor-title action from
chatgpt.openSidebartochatgpt.newCodexPanel, retaining the Codex icon. It additionally gives each draft panel a unique resource identity, since rebinding the button alone still reuses the existing tab. The user confirmed successive clicks now open separate tabs. The command defect is tracked in #15807; repeated onboarding is tracked in #25146.Suggested official UX:
The activity-bar Codex icon can continue to focus the sidebar. The request concerns the editor-title toolbar and the explicit new-chat command.
tnoetzel commentedon Oct 15, 2026
Strongly support this feature request.
tssdhar-cell commentedon Nov 16, 2026
Hi I found a Workaround for this:
Open Codex in an editor tab instead of the sidebar
You can change the existing Codex button behavior by modifying the extension's
package.json.Steps:
Open your VS Code extensions directory:
C:\Users\<username>\.vscode\extensions\~/.vscode/extensions/Find the folder starting with
openai.chatgpt-.Open its
package.json.Navigate to
contributes → menus → editor/title.Find:
Replace it with:
Save and restart VS Code.
Result: Clicking the Codex button in the editor's top-right toolbar now opens Codex in an editor tab instead of the sidebar.
Optional — Restore the original Codex icon:
In
contributes → commands, findchatgpt.newCodexPaneland replace itsiconvalue with the one used bychatgpt.openSidebar.Remaining limitation compared to Claude Code
Unlike Claude Code, which automatically opens in a separate editor group on the right and reuses the existing tab on subsequent clicks, Codex opens in the currently active editor group.
Feature request: Codex should support the same behavior as Claude Code—open on the right by default and reuse the existing tab instead of creating new ones.
Note: This is an unofficial workaround, and extension updates may overwrite the
package.jsonchanges.wkd1605 commentedon Nov 18, 2026
I can reproduce this on macOS (Apple Silicon) with the Codex VS Code extension 26.1111.21308. In the same editor group, run
Codex: New Codex Agent, then run it again. VS Code focuses the existing Codex editor tab instead of opening a second independent tab. I also reproduced this after starting a conversation in the first tab.Please let each invocation open a separate Codex conversation in the same VS Code editor tab bar, so I can keep two or three conversations open and switch between them by clicking their tabs.
rafaelcesartec commentedon Nov 22, 2026
Yessss
DavidHJong commentedon Nov 23, 2026
yes. support multiple tabs in vscode extension too. claude code is a good example. you can simply copy it.
MrrHouse commentedon Dec 1, 2026
I agree with this enhancement, especially the comparison to Claude Code's editor-tab workflow. Having to use a separate Command Palette command to open a chat tab adds unnecessary friction.
One addition I'd like to see is for the same editor-tab preference to apply to the sidebar's New Chat button and conversation history. On Windows, opening a new Codex panel leaves the current sidebar conversation in place and starts a separate blank chat in the editor. That makes the two surfaces feel disconnected.
Building on the original proposal, it would help if:
These would make the one-click tab workflow proposed here feel consistent across the extension.