简繁EN

VS Code 插件No. 77

Conversations: one side bar list for Claude Code, Codex and OpenCode

Contents

Install Claude Code Plus, Codex Plus or OpenCode Agent Plus and VS Code installs Agent Plus with it. Agent Plus's Conversations list brings the current workspace's conversations (the next section says which ones count) together in the side bar, with each row starting with the agent's logo. When you use several agents, you can find a conversation or see which conversations are running and which are waiting for your answer without switching between lists.

The Conversations list on the left and a Claude Code conversation open in the editor

You can organise conversations with groups (named sections of the list) and title colours, then search or filter the list by agent to find one. Pinning a conversation keeps it from being archived or deleted automatically (see Recently closed and Archived) without changing its place in the list.

Agent Plus does nothing on its own: each agent's conversations appear only when its Plus extension is installed. This post covers the Conversations list in Agent Plus 1.13.0. The screenshots use Claude Code Plus 1.13.0 and OpenCode Agent Plus 1.6.0. The Codex conversations described here come through Codex Plus 1.10.0.

Where to find the list and which conversations it shows

Click the activity bar icon with the tooltip "Agent Plus - Conversations" to open the Conversations list in the side bar. Claude Code's own session list has a separate icon.

Agent Plus shows only conversations that belong to the current window's workspace. Each agent uses a different rule:

Agent Which conversations belong to this workspace
Claude Code Conversations started in the window's first workspace folder (the top one in the Explorer) itself, not in its subfolders, or in a worktree (another checkout of the same Git repository) Claude Code created for that folder.
Codex Conversations whose working directory is a workspace folder or one of its subfolders, plus conversations in other worktrees of a workspace folder's Git repository.
OpenCode Conversations started in any workspace folder or its subfolders, plus conversations in linked worktrees of a workspace folder's Git repository. This includes worktrees OpenCode creates in its own data folder.

By default, the list hides background runs (sessions started with claude --bg, claude -p or opencode run), sub-agent sessions and conversations with no messages yet. Turn off agentPlus.sessions.hideBackground to show them. Each sub-agent session then appears indented under the conversation that started it.

Every conversation in Claude Code's own session list, except the cloud sessions in its Web tab, is also in the Agent Plus list. The first time Agent Plus shows one of those conversations, a note above the list asks whether to hide Claude Code's own list. You can also turn on claudeCodePlus.hideOfficialSessionList to hide that list and its activity bar icon. Session history stays available at the top of a conversation.

Claude Code deletes old transcripts after the number of days in its cleanupPeriodDays setting. While you use the Agent Plus session list, Claude Code Plus moves the modification times of transcript files forward so Claude Code's cleanup skips conversations still in the list.

At the top of the list, Account & usage has a block for each agent, collapsed by default.

Block What it shows
Claude Code Estimated cost, time spent in API calls, time since the conversation started and lines changed, for the conversation last in front in this window that is still open there; the block shows its title
Codex How you are signed in, how much of each rate limit you have used and when it resets, and token counts for today, in total and for the Codex conversation you last viewed
OpenCode Provider, model, cost and token count of the OpenCode conversation in front, plus today's total cost across all OpenCode conversations

What a row tells you

Look for a stripe at the start of the row, a status dot at the top right of the agent's logo and an envelope after the title. Hover over the row for details, or click it to open the conversation.

Mark Meaning
Solid blue stripe Open in this VS Code window.
Outlined blue stripe, dimmed row Open elsewhere. A window icon at the end of the row means another VS Code window. A terminal icon means a terminal or another program, such as claude --bg or Claude Desktop.
Solid grey stripe Closed in this window recently (also listed under Recently closed, covered later).
No stripe Open nowhere.
Solid green dot A turn is running: the agent is working on your latest message.
Green ring The turn has ended. Only background work, such as a background command or a sub-agent, is running.
Solid red dot The agent is waiting for you to grant permission, make a choice, fill in a question form, review a plan, or answer a question it added to its work plan (see the Work plan post) after your last message.
Red ring The work plan has a question for you, and the turn is still running.
No dot The agent has stopped.
Envelope after the title A reply is unread.
Pin before the last-message time at the end of the row The conversation is pinned.

The envelope disappears once the conversation has been in front for about 1.5 seconds. To change its read status yourself, right-click the row and choose Mark as Unread or Mark as Read.

The time at the end of the row shows how long ago the last message arrived: now, 5m, 3h or 2d, for example. While the pointer is on a row, Pin (or Unpin), Rename and Archive replace the time.

After about 0.6 seconds, a box shows the agent, the section of the list the row is in (its group, or Ungrouped), and the conversation's Session ID, start time and last activity time (for a Claude Code conversation, the time of its last message). It also says what the dot means, such as "Asked you a question and stopped", and where the conversation is open.

Hover box for a row with a solid red dot: the agent has stopped and is waiting for an answer to a question in its plan.

If you click a conversation that's open in another VS Code window, that window comes to the front without opening a second copy here. For a conversation open in a terminal or another program, Agent Plus asks you to close it there first so two programs don't write to the same conversation.

How the list is ordered

In each group and in Ungrouped, conversations open here or elsewhere come first. These rows have a blue stripe and are ordered by the 15-minute slot (starting at :00, :15, :30 and :45) of their last message, newest slot first.

The row stays in place until a message arrives in a later slot, then moves to the top of that slot. When several conversations are running, this keeps the list from jumping with each message. Pinning a conversation or starting a run does not move its row.

The rest follow, newest last message first, including rows with a grey stripe.

The list holds its current order while your pointer is over it, one of its menus is open, or a row has focus from the arrow keys, and re-sorts once you leave.

Groups

Groups divide the Conversations list into named sections you can collapse. Conversations without a group appear under Ungrouped.

To create a group:

  • Open the view's title bar menu (...) and choose New Group.
  • Right-click a row, or a selection of rows, and choose New Group from Conversation.
  • Right-click a group header and choose New Group.

The new group's name, "New group", is ready to edit. Type a name and press Enter. The list can have up to 100 groups, with names of up to 100 characters.

To move a conversation, right-click its row and choose a group from the Add to Group submenu. You can also drag the row onto the group's header or any row in that group. Dropping it on Ungrouped takes it out of its group; the menu also has Remove from Group.

Ctrl+click (Cmd+click on macOS) adds rows to a selection one by one, and Shift+click selects a range. Dragging moves all selected rows. The right-click menu also acts on the whole selection and shows the count in item names such as Pin 3 Conversations.

Right-click a group header to start a conversation there: choose New Conversation in This Group, then pick the agent from the submenu. Choosing Delete Group there returns its conversations to Ungrouped.

Right-click menu on a group header: New Conversation in This Group, New Group, Rename Group, Move Up, Move Down and Delete Group

Agent Plus identifies the project by the window's saved workspace file, or by its first folder if there is none. Every VS Code window on this machine with that project reads and writes the same record for groups, pins, colours, archive state and unread marks.

The row menu: pins, title colour and the rest

A pin keeps a conversation from being archived or deleted automatically. The Pin button appears when you hover over a row, and Pin is also on the right-click menu. To see just your pinned conversations, use the Pinned filter at the top of the list.

Automatic archiving moves a long-idle conversation to Archived, the section at the bottom of the list where you can still open it. See Recently closed and Archived for the timing.

Title Color on the right-click menu sets the colour of a title. The submenu offers Default and eight colours: Red, Blue, Green, Yellow, Purple, Orange, Pink and Cyan. Each colour has a swatch, and a tick marks the current choice. The swatches follow your VS Code theme's chart colours, except for Pink and Cyan, which use its terminal colours.

A row's right-click menu with the Title Color submenu open

Menu item When to use it
Open in Tab, Open in Sidebar Open a conversation that isn't open in this window. Both items are hidden once it's open here. OpenCode conversations have no Open in Sidebar.
Rename Change the conversation title.
Mark as Unread / Mark as Read Change the unread envelope on the row.
Make Temporary... Make a conversation temporary (see Temporary conversations). This item appears only while the conversation is open in this window.
Archive, Unarchive, Delete... Move a conversation to Archived. Once there, use Unarchive to bring it back or Delete... to delete it.

OpenCode conversations have one more item, Fork Conversation, covered in the last section.

Filtering and searching

If you remember part of a title or Session ID and want to search across agents, including archived conversations, use Agent Plus: Find Conversation by Title or ID... from the Command Palette. It works with the side bar closed and ignores the filters below. In its picker, type part of a title or of the Git branch of the conversation's folder, or at least four characters of a Session ID, and select a result to open it.

Each button at the top of the list shows a count:

  • All: every conversation.
  • Open: open in this window.
  • Running: a turn or background work in progress.
  • Needs you: a red dot or red ring. The count matches the badge on the list's activity bar icon; both count only red rows in this window's project.
  • Pinned.

Click the selected button again to return to All.

To filter by agent, click the funnel in the view's title bar and untick any installed agent whose conversations you want to hide.

Typing in the list starts a search of the visible rows, and so does the magnifier in the title bar. Search matches conversation titles and the Git branch of each conversation's folder, ignoring case. A query of four or more characters with no spaces also matches part of a Session ID. The list highlights the matching text in each title.

The Conversations list with "budget" in the search box and the matching text highlighted in conversation titles.

Key In the search box In the list
Enter Opens the first result Opens the selected conversation
Down Moves focus into the list Moves to the next row
Up Moves to the previous row
Esc Clears the query; a second press closes the search box
F2 Renames the selected conversation
Shift+F10 or Menu Opens the row's right-click menu

Recently closed and Archived

Use Ctrl+Shift+T (Cmd+Shift+T on macOS) to reopen the last conversation you closed in this window. It reopens where it was, in a tab or the side bar. Conversations you no longer need can go to Archived, at the bottom of the list.

Recently closed and Archived expanded in the Conversations list

Recently closed holds up to 10 closed conversations by default, newest first, each with the time since it was closed, such as "closed 5m". The conversation also stays in its group or in Ungrouped, with a grey stripe. Temporary conversations (see Starting a conversation) never appear in Recently closed.

You can also choose Reopen Closed Conversation from the title bar menu (...). When there are no more conversations to reopen, the shortcut reopens VS Code's last closed editor as usual.

To archive a conversation, hover over its row and click Archive, or choose Archive from its right-click menu. Archiving removes the conversation from its group and unpins it. Choose Unarchive in Archived to move it back to the main list.

By default, Agent Plus archives a conversation 14 days after its last activity time, the one shown in the row's hover box. It skips conversations that are open here or elsewhere, running, waiting for you, unread, pinned or in a group.

An archived conversation is deleted from disk 90 days after it was archived or after its last message, whichever is later. Conversations still pinned (archiving from the list unpins, but a conversation archived and pinned in an earlier Claude Code Plus version is still pinned when it shows up in Archived), those open here or elsewhere, and running ones are never deleted.

Setting Default What it controls
agentPlus.sessions.recentlyClosed 10 Maximum number of conversations in Recently closed. 0 hides the section.
agentPlus.sessions.archiveAfterDays 14 Days without activity before automatic archiving. 0 turns it off.
agentPlus.sessions.deleteArchived on Turn this off to stop automatic deletion of archived conversations.
agentPlus.sessions.deleteAfterDays 90 Days before an archived conversation is deleted from disk.

Deleting by hand works only in Archived: right-click the row there and choose Delete.... The confirmation dialog lists what will be removed and says "This cannot be undone." An agent working in a conversation cannot delete any conversation, its own or another.

Starting a conversation

Use the New bar at the top of the Conversations list to choose an agent and start a conversation in an editor tab or the side bar. The agent logo on the left opens a menu of the agents you can choose from. A check mark shows the current agent, and the New bar remembers your choice.

The New bar's agent menu showing Claude Code and OpenCode Agent Plus

Of the New bar's two buttons, New in tab and New in sidebar, the one you used last is drawn in the theme's button colour. For OpenCode Agent Plus, whose conversations open only in tabs, New in sidebar is greyed out.

Temporary conversations

A temporary conversation stays out of the list and is deleted after you close it, unless you choose Keep in the notification that appears when you close it. To start one, click the hourglass on the right of the New bar. It applies to the next conversation you start from the bar, then turns off. Claude Code and OpenCode start temporary conversations only in tabs, so with the hourglass on, use New in tab. The tab title starts with an hourglass.

You can also run Agent Plus: New Temporary Conversation. To make a conversation that is open in this window temporary, right-click its row, choose Make Temporary... and confirm.

When you close a temporary conversation, a notification offers Keep and Delete Now. Keep makes it an ordinary conversation and puts it in the list. If you take no action, Agent Plus deletes the conversation after agentPlus.temporaryConversations.deleteAfterMinutes minutes (10 by default). Deletion removes the conversation's history, the agent's other storage for it (such as the file checkpoints Claude Code keeps for rewinding edits, and transcripts of the conversation's sub-agents) and the conversation's work plan. Your project files stay in place.

How OpenCode conversations differ

OpenCode conversations open only in editor tabs, so their right-click menu has no Open in Sidebar. To copy the whole conversation into a new tab, right-click its row and choose Fork Conversation, just above Archive.

OpenCode conversations marked with the OpenCode logo and a right-click menu showing Fork Conversation above Archive

Renaming from the list needs OpenCode 2.

A conversation that OpenCode's terminal interface has open, or that opencode run is running, also counts as open elsewhere. Its row is dimmed and has an outlined stripe. Hover over the row to see the terminal, folder and process.

In this series

  1. Claude Code Plus, Codex Plus and OpenCode Agent Plus: series overview
  2. Supervisor: one conversation that looks after the others
  3. Background work and alerts: see which conversation is running and which is waiting for you
  4. Conversations: one side bar list for Claude Code, Codex and OpenCode
  5. Work plan: keep long conversations on track and answer their questions in one place
  6. Claude Code Plus: times, cost and a message list in the Claude Code panel
  7. What Codex Plus 1.10.0 adds to Codex in VS Code
  8. OpenCode Agent Plus: talk to OpenCode in VS Code editor tabs

Article link: https://xnerv.wang/en/agent-plus-session-list/