Skip to content

VS Code extension: one-click editor tabs for multiple simultaneous chats #53071

Open

Description

@rafaelcesartec

What variant of Codex are you using?

IDE Extension for Visual Studio Code.

What feature would you like to see?

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.

Related discussion: #20951.

Environment:

  • macOS: 27.0.1
  • VS Code: 1.141.0
  • Codex extension: 26.1007.21434

Activity

  1. 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
  2. added
    enhancement
    extension
    on Oct 11, 2026
  3. anindyamahajan commented on Oct 13, 2026

    @anindyamahajan

    I would also like this to be a supported one-click workflow. Reproduced on openai.chatgpt 26.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.

  4. tnoetzel commented on Oct 15, 2026

    @tnoetzel

    Strongly support this feature request.

  5. tssdhar-cell commented on Nov 16, 2026

    @tssdhar-cell

    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:

    1. Open your VS Code extensions directory:

      • Windows: C:\Users\<username>\.vscode\extensions\
      • macOS/Linux: ~/.vscode/extensions/
    2. Find the folder starting with openai.chatgpt-.

    3. Open its package.json.

    4. Navigate to contributes → menus → editor/title.

    5. Find:

      "command": "chatgpt.openSidebar"
    6. Replace it with:

      "command": "chatgpt.newCodexPanel"
    7. 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.

  6. wkd1605 commented on Nov 18, 2026

    @wkd1605

    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.

  7. rafaelcesartec commented on Nov 22, 2026

    @rafaelcesartec
    Author

    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.

    Yessss

  8. DavidHJong commented on Nov 23, 2026

    @DavidHJong

    yes. support multiple tabs in vscode extension too. claude code is a good example. you can simply copy it.

  9. MrrHouse commented on Dec 1, 2026

    @MrrHouse

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions