Skip to content

Tabbed interface for parallel chat sessions in Codex extension #12098

Open

Description

@michaeltyson

What variant of Codex are you using?

IDE Extension (Codex/VS Code)

What feature would you like to see?

I would like a tabbed interface for chat sessions within the Codex extension for Cursor and VS Code.

Currently, switching between chats requires multiple steps: opening the chat list, locating the desired session, and selecting it. In practice, this usually means three clicks plus visually scanning or searching through the list. When working with multiple parallel sessions within the same project, this adds noticeable friction and makes it difficult to maintain flow.

A tabbed interface, similar to the built-in Agents UI in Cursor, would allow active chat sessions to remain visible and instantly accessible. Being able to pin, reorder, or quickly switch between open chats would significantly improve multi-stream workflows, especially during complex refactors, feature work, or parallel experimentation.

Additional information

This becomes particularly important when:

  • Running separate chats for different concerns in the same repository, such as one for architecture planning, one for implementation, and one for refactoring.
  • Comparing alternative approaches side by side.
  • Keeping a long-running context-heavy session open while using short-lived task-specific chats.

Even a minimal implementation, where active chats appear as tabs across the top of the panel, would reduce cognitive load and eliminate repeated navigation overhead. Optional enhancements such as keyboard shortcuts for cycling between tabs or the ability to group chats by project would further improve usability.

The core issue is not discoverability but friction. Reducing the number of clicks and eliminating the need to search through the chat list would make Codex far more usable for sustained, professional workflows.

Activity

  1. added
    enhancement
    on Feb 18, 2026
  2. added
    extension
    on Feb 18, 2026
  3. JoeMMesser commented on Feb 19, 2026

    @JoeMMesser

    I came here just to find this request. 100% this is needed. In a multitasking world I should not need to open multiple VS code windows to have separate codex sessions. I am spending more and more of my day with codex. Either i have to launch another session to do small one-off type actions or I do them in already context heavy windows which needlessly adds to the context.

  4. myprestarocks commented on Apr 27, 2026

    @myprestarocks

    Add this please. Currently Claude Code VSCode extension is a ton better than Codex, while Codex at the same time is a better tool. Essentially - look how Claude Code extension is done, you can rename sessions, have multiple tabs. Lots of this could be done the same way for Codex.

  5. banyinjushi commented on Apr 30, 2026

    @banyinjushi

    add this please!

  6. vsinghipcium commented on May 1, 2026

    @vsinghipcium

    +1

  7. brauliobo commented on May 1, 2026

    @brauliobo

    Indeed, Task switching is horrible today, also can't rename the chat/Task

  8. banyinjushi commented on May 8, 2026

    @banyinjushi

    add this and I will cancel my cc subscription imediately!

  9. dthinkr commented on May 9, 2026

    @dthinkr

    +1

  10. LubomirHoffman commented on May 9, 2026

    @LubomirHoffman

    +1

  11. biggiesmallcap-blip commented on May 10, 2026

    @biggiesmallcap-blip

    +1 please fix this, codex is terrible in VScode for workflow

  12. andys-development-system commented on May 12, 2026

    @andys-development-system

    I found this issue by asking codex how to use a tabbed interface instead of the chat list, and it pointed me here.

    This absolutely needs fixing, I use both Claude and Codex, and have been doing more and more with Codex, but it is so much easier to have multiple tasks going with Claude.

  13. nad3rzz commented on May 12, 2026

    @nad3rzz

    I built a VS Code-compatible extension that adds workspace-scoped quick tabs for existing Codex chats across the top of the Codex panel.

    It helps reduce repeated chat-list navigation:
    https://marketplace.visualstudio.com/items?itemName=nad3r.agents-rtl

    Image
  14. ats05 commented on May 13, 2026

    @ats05

    One of the best things about Cloude Code is its UI. I hope this will be incorporated into the Codex as well.

  15. danpetruk commented on May 13, 2026

    @danpetruk

    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.

  16. jdpierce21 commented on May 16, 2026

    @jdpierce21

    Yes, please!

  17. akaSurreal commented on May 27, 2026

    @akaSurreal

    another big yes please, lots of good ideas in this thread

  18. ciuchka2222 commented on Jun 30, 2026

    @ciuchka2222

    Yaaas!

  19. Lornt1666 commented on Jun 30, 2026

    @Lornt1666
  20. Ayanami-Yu commented on Jul 2, 2026

    @Ayanami-Yu

    +1
    Please enable renaming sessions and multiple tabs for Codex VS Code extension. Currently we can neither rename a session nor open multiple tabs at the same time, which is extremely inefficient :(

  21. bigben446 commented on Aug 3, 2026

    @bigben446

    +1

  22. ftuyama commented on Aug 4, 2026

    @ftuyama

    Please +1

  23. isCopyman commented on Aug 5, 2026

    @isCopyman

    For anyone looking for an interim solution, VS Code can already open multiple existing Codex sessions as normal editor tabs:

    1. Open the built-in Chat / Agent Chat view.
    2. Use the Sessions list (or Session History).
    3. Select a Codex session.
    4. Repeat with other sessions; the sessions can coexist as separate editor tabs and be split/moved using standard VS Code controls.

    This is not the requested first-class tabbed session UI: it does not provide sidebar tab management, renaming, pinning/reordering, or multiple fresh New Codex Agent panels. But it provides a useful no-patch workaround for parallel work with established sessions.

    A similar workaround with screenshots appears in #20951: #20951 (comment)

  24. elijahchancey commented on Aug 10, 2026

    @elijahchancey

    Adding another concrete use case for this: I keep one VS Code window per repository, but need several independent agent sessions inside each window—for example architecture, implementation, investigation, and a short-lived one-off task. Each session must retain separate conversation context while sharing the same repository workspace.

    Claude Code's editor tabs support this workflow naturally. With the current stable Codex extension (openai.chatgpt 26.803.41515), Codex is effectively a single visible panel: switching requires navigating through history, and Codex: New Codex Agent only focuses the existing panel rather than opening another independent tab.

    Multiple CLI terminals are not an equivalent replacement because the IDE panel provides the much better native inline-diff/review experience. Tabs that can be renamed, pinned, reordered, and switched by keyboard would solve this cleanly.

  25. lczech commented on Oct 5, 2026

    @lczech

    Running into the same issue all the time, want to have another session in a new tab, but instead the existing one focuses or even moves around...

  26. ktarmyshov commented on Oct 24, 2026

    @ktarmyshov

    Adding a concrete VS Code/macOS workflow in support of this request.

    I regularly run two Codex conversations in the same workspace: one is implementing or testing a change, while I use the other to investigate the next issue or review the results. Today I have to leave the active thread, open the conversation list, find the other thread, then reverse that process to come back. This is particularly disruptive on a smaller laptop display, where I also need to open source files and review diffs.

    I'd like active conversations to behave like ordinary, persistent VS Code tabs:

    • one-click access to two or more independent, named sessions without searching history;
    • quick tab switching, optional split view, and the ability to move a session into another editor group or separate window;
    • keep the current task running while I investigate another issue, with clear running/needs-input indicators;
    • preserve the normal editor/file/diff workflow (opening a source file should not replace the chat view or force an awkward layout).

    I know chatgpt.newCodexPanel exists and previous conversations can be opened as editor tabs; the main request is to make managing multiple active sessions discoverable, reliable, and effortless rather than a series of Command Palette/history-navigation workarounds.

    Related requests: #36873 (multiple independent views) and #53071 (one-click editor tabs). Even a small UX improvement here would make a big difference for everyday parallel development.

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