codex icon indicating copy to clipboard operation
codex copied to clipboard

[IDE Extension] Allow configuring the number of recent chats shown in the sidebar

Open sbichenko opened this issue 2 months ago • 9 comments

What variant of Codex are you using?

IDE Extension

What feature would you like to see?

Allow users to configure how many recent chats are shown directly in the Codex IDE extension sidebar.

The sidebar currently shows three ordinary recent chats, followed by View all (N). Opening the full history adds an extra interaction each time I switch among more than three active chats.

A setting or persistent inline expansion could let users show, for example, 5, 10, or all recent chats. The current three-chat layout can remain the default, and View all can remain available for the complete searchable history.

Additional information

  • Codex IDE extension version: 26.930.21537
  • Platform: macOS, Apple silicon
  • Chats that need attention, such as active or unread chats, can already increase the inline count. This request concerns the normal recent-chat limit.

sbichenko avatar Oct 02 '26 09:10 sbichenko

It would be nice if it was configurable. I have plenty of space and see just 3 recent chats.

oomek avatar Oct 14 '26 17:10 oomek

Another example on Windows, using the Codex IDE extension 26.1007.21434 in VS Code.

I have 9 available chats ("View all (9)"), but only 3 chat rows are shown inline. Most of the tall sidebar is empty. Switching to any of the other chats still requires opening the history menu, even though there is plenty of room to show them directly.

Please allow a configurable recent-chat count (for example 5, 10, 20, or all), or a persistent expanded list that fills the available panel height and scrolls when needed. A taller panel should be able to show more chats while keeping the composer accessible.

AntonyGon avatar Oct 20 '26 23:10 AntonyGon

I strongly support this feature request.

I'm using the Codex VS Code extension (openai.chatgpt, version 26.1021.22027), and the current limit of only 3 visible recent chats is unnecessarily restrictive.

I regularly work with multiple conversations in parallel, and having to click "View all" every time I want to switch between them makes the workflow slower and less convenient, especially when there is plenty of unused vertical space in the sidebar.

Requested improvement:

  • Add a persistent setting such as codex.recentChats.visibleCount.
  • Let users choose between 3, 5, 10, 15, 20, or all recent chats.
  • Alternatively, allow the chat list to automatically expand to fill the available sidebar height.
  • Make the list scrollable when necessary.
  • Keep the current 3-chat layout as the default for users who prefer it.
  • Preserve the setting across extension updates.

Why this matters:

Currently, the visible chat limit is hardcoded in the extension's UI. Changing it manually requires modifying the extension's bundled JavaScript files, and every extension update can overwrite that modification.

A basic UI preference should not require users to patch the extension after each update.

Please consider adding this as an official, persistent VS Code extension setting. It would be a small customization with a significant usability benefit for developers managing multiple parallel Codex conversations.

tomasztomasz12 avatar Oct 24 '26 17:10 tomasztomasz12

Related request: #60228 — use the full panel height for chat history and add search.

The two requests overlap on the fixed three-chat limit and unused sidebar height. #60228 adds a separate search requirement, so they are related but not exact duplicates.

A combined design could use a responsive, scrollable history region that adapts to the panel height, a persistent preference for the number of visible recent chats (including an "all" option), and a search field kept in a fixed header above the list. For large histories, use efficient/virtualized rendering; preserve keyboard accessibility and account/workspace scoping.

I suggest coordinating the visible-count/layout behavior with this issue and retaining the search requirement explicitly in #60228 (or in a maintainer-selected canonical issue). No implementation or tests are claimed.

secheverrianogal-beep avatar Nov 08 '26 11:11 secheverrianogal-beep

Please add a persistent setting for the number of recent chats displayed inline, preferably in ~/.codex/config.toml.

I use the Codex VS Code extension 26.1120.50957 on Windows and would like to display 6 chats without clicking “View all”.

The preference should persist across extension updates, without requiring manual changes to bundled JavaScript.

tikondrus avatar Nov 26 '26 15:11 tikondrus

Please add a persistent setting for the number of recent chats displayed inline, preferably in ~/.codex/config.toml.

I use the Codex VS Code extension 26.1120.50957 on Windows and would like to display 6 chats without clicking “View all”.

The preference should persist across extension updates, without requiring manual changes to bundled JavaScript.

I found the hardcoded limit in webview/assets/header-7c9f8a054389.js in extension : .slice(0,Math.max(3,r.length))

Changing 3 to a larger number increases the number of chats displayed inline.

However, extension updates can overwrite this modification, and manually reapplying it after each update is inconvenient. Please add a supported, persistent setting for this limit, preferably in ~/.codex/config.toml.

tikondrus avatar Nov 26 '26 16:11 tikondrus

It's sad that we're forced to hack the extension to get such basic functionality. Thanks @tikondrus !

oomek avatar Nov 26 '26 17:11 oomek

I’m seeing this on Windows with Codex for VS Code 26.1120.50957. The Chats sidebar shows three recent sessions even when there’s plenty of space below. View all (50) opens a searchable popup to pick a session, so I have to reopen it every time I want to browse older chats.

Could the sidebar let me choose how many sessions are shown by default and offer a persistent, scrollable history that uses the available panel height? That would let me scan older sessions even when I don’t remember their titles. This also overlaps with #60228.

Ideally, the history would also offer a grouped view like the Codex desktop app, with collapsible sections by project or workspace folder. That would make it easier to find and reopen a session when I remember the project but not the title.

villastark avatar Nov 26 '26 17:11 villastark

@villastark For the project-grouped browsing you described—especially when you remember the repository but not the conversation title—I maintain Codex Project Chats, an independent VS Code companion extension. Disclosure: I'm the author.

It keeps a separate history view available in the Activity Bar, with collapsible groups based on each local conversation's saved working directory. You can browse Current project or All projects, scan conversation titles, search titles, and load additional pages. Clicking a conversation returns to the existing official Codex sidebar to continue it. Source and screenshots.

This doesn't change the official inline recent-chat count or add a setting for it; it offers an alternative for the persistent project-history view. For your Windows setup, please note that end-to-end verification currently covers macOS Apple Silicon only; Windows and remote workspaces are not yet verified end to end. I still support a native configurable history list.

cixiangtao avatar Nov 27 '26 02:11 cixiangtao