简繁EN

VS Code 插件No. 78

Background work and alerts: see which conversation is running and which is waiting for you

Contents

With several Claude Code conversations open in VS Code, you have to click through the tabs to see which one needs you. While tests or a build run in one conversation, another may be waiting for you to click Yes at a permission prompt. Even a conversation that has already replied can still have a command running in the background. Claude Code shows no activity indicator on its tab while Claude works on a reply, and it reports the conversation as idle if only background work remains.

Claude Code Plus 1.13.0 and Agent Plus 1.13.0 are now available on the VS Code Marketplace and Open VSX. Claude Code Plus extends Anthropic's Claude Code extension for VS Code. It depends on Agent Plus, which provides a session list, notifications and the count of conversations that need you in the status bar.

With Claude Code Plus, each tab's icon and title show the conversation's state. You can also see the conversations together in Agent Plus's session list. Claude Code's panel footer shows what's still running in the conversation the panel shows. When a conversation needs you, its panel chimes. If the conversation isn't open in the window you're using, a notification appears in that window's bottom-right corner.

Status dots on tabs and in the session list

Claude Code Plus shows a conversation's state at the top right of the Claude logo on its tab. A solid green dot means a turn is running: Claude has received your message and is working on its reply. If background work is still running when the turn ends, the dot becomes a green ring.

Dot Meaning
Solid green A turn is running
Green ring The turn is over; background work still runs
Red Waiting for you: a permission prompt, a choice, or a question in the conversation's Work plan newer than your last message
Red ring (session list only) A new question in the Work plan while a turn or background work still runs
None Stopped, nothing running

Claude Code's own tabs have no dot while a turn runs, a blue dot while Claude waits for permission and an orange dot for an unread reply. Claude Code Plus doesn't use blue. It marks an unread reply with an envelope after the title.

Claude Code reports a conversation as idle once its turn ends, even if background work is still running. Background work includes:

  • Claude Code sessions the conversation starts with claude --bg. They run in the background without a terminal attached.
  • Workers the conversation starts with claude -p (--print). Each worker is a Claude Code process that runs one task without the interactive interface and then exits.
  • Background commands, subagents, monitors and workflows that Claude Code runs in the conversation's own process.
  • On Linux, detached commands: commands the conversation left running outside Claude Code. Claude Code Plus finds them in /proc, including programs started with setsid nohup.

Starting with version 2.1.326, Claude Code reports work in the conversation's own process to the work plan plugin at the end of each turn. Loading the plugin lets Claude Code Plus use that report to display the green ring on every platform. If the plugin isn't loaded or Claude Code is on an earlier version, only background commands running in that process on Linux can trigger the ring. Reloading the VS Code window ends the work in that process and clears its ring.

When no turn is running, even if background work is still running, a question in the conversation's Work plan newer than your last message makes the tab dot solid red. The same status dots appear in Agent Plus's Conversations session list and in the Supervisor panel. A supervisor is a conversation that looks after other conversations for you. Tick the conversations you want it to supervise in the Supervisor panel.

Three Claude Code tabs: a supervisor with a crown and a green ring, a running turn with a solid green dot, and a conversation waiting for permission with a red dot

Agent Plus's session list with the same dots, an envelope icon for an unread reply and the supervisor's crown

The envelope and the crown

An envelope at the end of a tab title means the conversation has a reply you haven't seen. It disappears as soon as the conversation is on screen. The envelope and the dot on the tab icon are independent. If you see an envelope and a green dot, a reply has arrived and a turn is still running.

Claude Code marks a reply as unread only when nothing is left running. If a turn ends out of sight with background work still running, Claude Code Plus sets the unread flag so the envelope appears.

The tab uses the colour envelope with an arrow (📩) in a dark theme. A colour emoji font draws the envelope white, which makes it hard to see against a light background, so light themes use a single-colour envelope (✉︎).

In both the Agent Plus session list and the Supervisor panel, the envelope icon follows the title. The panel shortens long titles with an ellipsis to keep the icon visible.

A supervisor tab with its crown, and a tab with an unread reply; both still have background work, so both show a green ring

A supervisor's tab title ends with a crown (👑). The crown follows the supervisor's title in its session list row. If the supervisor has an unread reply, the envelope comes after the crown. The crown disappears when the supervisor no longer manages any conversations.

The tab displays the envelope and crown without adding them to the stored title, so neither appears in the rename box.

The number next to Agents at the bottom of Claude Code's panel is the agent count Claude Code itself shows. The small dot at the start of the button is green while any of this conversation's background work is running, including Claude Code's own background subagents and monitors. It turns grey once all the work has ended.

The Agents button in the footer while a background command and a claude -p worker run

Claude Code Plus appends the background work to the agent count, with one part per kind, as in 1 task · 1 worker.

Count What it counts Turns the dot green?
1 task Claude Code's background commands: a build, a test run, a sleep used as a timer Yes
1 detached Detached commands Yes
1 timer Scheduled prompts: timers the conversation set with Claude Code's scheduled tasks No; nothing runs until one is due
1 worker claude -p workers Yes
1 bg claude --bg sessions still running; with one waiting for an answer it reads 1 bg (1 waiting) Yes
1 bg done Only finished claude --bg sessions are left No

When there are more than three kinds, the button names the first two and shows the sum of the remaining counts as N more: 1 detached · 2 timers · 3 more. Hover over the button to see every kind. The shorter label keeps the counts visible: when the footer row does not fit, Claude Code replaces the button text with an icon. A label naming five kinds did not fit in a tab of ordinary width.

To leave claude --bg sessions out of the count, turn off claudeCodePlus.show.backgroundSessions.

The agent map: what is running in the background

Click Agents in the panel footer to open the agent map. The first row, under THIS CONVERSATION, shows the conversation with the same dot as its tab. Each background work card follows Claude Code's own layout: a dot, a title and one line of detail.

SUBAGENTS and BACKGROUND TASKS come first, followed by detached commands, scheduled prompts, claude -p sessions and claude --bg sessions. A section appears only when it has entries, and its heading shows the count.

Section What the card shows Hover or click
SUBAGENTS Claude Code's own section: the task and how long it has run Click for Claude Code's own agent details
BACKGROUND TASKS Claude Code's own section: the command's description; shell and how long it has run Claude Code's own details
DETACHED COMMANDS (Linux only) The program and the argument that identifies it; PID, start time, how long it has run Hover for the full command line
SCHEDULED PROMPTS The first line of the prompt; when it fires and when it last fired Click for the whole prompt
claude -p SESSIONS (workers) The worker's name; PID, start time, how long it has run Hover for its session ID and state
claude --bg SESSIONS Name and state Click for what it waits for, its result, and the attach and logs commands

A detached command title keeps just enough of the command line to identify what is running, as in perl -e ... cache-relay:demo. The section also includes commands left running by a claude -p worker that this conversation started, even after the worker exits. Those cards show by worker followed by the first 8 characters of the worker's session ID.

Under each scheduled prompt, the second line gives the schedule and the last run: every 20 min · last fired 7 min ago or daily at 9:30 · never fired.

On Linux, Claude Code Plus can find a claude -p worker even if the worker never printed its session ID. It looks for a claude process under a command the conversation left running and reads the ID from that process's session record. The map then shows the worker and leaves that command out of DETACHED COMMANDS. Elsewhere, the map relies on the launch command's output: it lists the worker only if that command printed the worker's session ID.

A claude --bg card's dot uses the same colour Claude Code uses for an agent in that state. Open the card for the commands claude attach <id> and claude logs <id>. The card stays in the map after the session finishes, so you can open it to read the result.

The agent map with every kind of background work

A finished claude --bg session opened in the agent map, with its result and the attach and logs commands

Background work reports back to the conversation

Claude Code Plus sends background work messages to the conversation that started it. If the conversation is idle when a message arrives, it starts a new turn without a prompt from you.

When a claude --bg session ends, the conversation receives its result or error. This includes sessions that finish, fail, are stopped or die. When a session pauses for an answer, Claude Code Plus sends its question to the conversation. The conversation gets no message for a session it stopped itself. On native Windows, Claude Code Plus cannot report that a claude --bg session has ended.

For a detached command, Claude Code Plus can tell the conversation only that the command stopped. It cannot read the exit code.

Agent Plus's token mode controls which features can write to Claude's context. To receive the messages about claude --bg sessions and detached commands, use Agent Plus's token mode entry in the status bar to select All features (the default), or select Custom and turn on claudeCodePlus.detachedEndNotices. The Claude Code Plus post explains token mode in more detail.

When a conversation is waiting for you

Agent Plus counts conversations that need your approval or an answer in the status bar. A conversation's panel chimes when it needs your input. If the conversation isn't open in the VS Code window you're using, Agent Plus also shows a notification in that window's bottom-right corner.

When Not included
Notification in the corner A conversation starts waiting for you, or stops with a reply you have not seen for 5 seconds Conversations the window you are using already shows
Count in the status bar A conversation waits for your approval or answer, a new plan question included; the one in front of you counts too Stopped conversations that only have an unread reply

Notifications in the corner

A conversation in any VS Code window on this machine can trigger a notification, but only the window with the focus shows notifications. Agent Plus skips the notification if the conversation is open in that window's active tab, a background tab or the side bar. You're already in the window where you can answer. A waiting conversation in a background tab still has a red dot and counts in the status bar.

Each notification starts with a time in brackets, such as [18:28], in the time zone of the computer displaying the window. The notification has two buttons: Open and Dismiss. Click Open to bring both the conversation and its window to the front.

For a tool approval, the text can read "Deploy the staging stack" is waiting for you to approve Bash. Other messages end with has a question for you., has a plan for you to review. or is waiting for you to choose. The last one asks you to choose Continue or Stop in Claude Code's auto mode. A stopped conversation with an unread reply gets "<title>" finished.

Agent Plus 1.13.0 does not send operating system notifications. When you switch away from VS Code, Agent Plus holds notifications until you return. The window you return to shows one notification per conversation that qualifies. Each notification carries the time the conversation started waiting or finished.

VS Code windows share notifications through a folder in your home directory, so only windows on the same machine can receive them. A window connected over Remote-SSH receives notifications only from windows on the remote machine.

Three settings control which notifications Agent Plus shows:

Setting What it controls
agentPlus.notifications.enabled Main switch for Agent Plus notifications
agentPlus.notifications.finished Notifications for stopped conversations with an unread reply
agentPlus.notifications.waiting Notifications for conversations waiting for approval or an answer

Turning off these settings leaves the status bar count in place. If Agent Plus notifies you that a conversation needs your input, Claude Code skips its own notification. Claude Code resumes showing its notification in the conversation's own window if agentPlus.notifications.enabled or agentPlus.notifications.waiting is off, the window is in Restricted Mode, or the installed version of Agent Plus is too old.

Two Agent Plus notifications shown when the window got the focus back, and the status bar count below them

The count in the status bar

Agent Plus's Conversations entry reads N conversations need you. It counts each waiting conversation once across all VS Code windows on this machine, including the conversation in front of you. Otherwise, the entry reads Conversations M, where M is the number running.

Click the entry and pick a conversation to open. The list includes both conversations waiting for you and stopped conversations with an unread reply. The command Agent Plus: Show the Conversations That Need You opens the same list.

Chimes

The panel plays a short chime when a turn finishes, when Claude asks for permission and when Claude asks you a question. You can tell which event occurred without looking or relying on volume because each chime has its own sound pattern. The permission chime matters most: the conversation has stopped and won't continue until you act.

The sound plays on the computer displaying the panel, so you hear it on your own computer even when VS Code connects to a remote host. Claude Code Plus synthesizes each chime as it plays and ships no audio files. Use the mute button in the panel footer to silence the chimes. The panel remembers your choice after the window reloads.

In Codex Plus and OpenCode Agent Plus

Codex Plus and OpenCode Agent Plus also use a dot on the tab icon to show what the conversation is doing and an envelope in the title to mark an unread reply.

Extension Way into background work What opens Chime switch
Claude Code Plus 1.13.0 The Agents button in the panel's footer The agent map dialog, by kind The mute button in the footer
Codex Plus 1.10.0 A pill-shaped button in the message box toolbar The agent map dialog, listing the conversation and the work it left running The musical-note button next to the information button in the toolbar
OpenCode Agent Plus 1.6.0 A pill-shaped button with a green dot under the input box A list that opens above the input box The musical-note button next to Send

Codex Plus: the agent map opens from a pill in the message box toolbar

OpenCode Agent Plus: the pill under the input box opens the list of background work

Codex Plus shows the same dot on a conversation's tab icon and on its row in the session list. The agent map button appears only when the conversation has sub-agents or a wake-up, or while work it started is still running in the background. A wake-up is a timer the model sets for itself. Codex Plus also uses the same three chimes as Claude Code Plus. When Codex waits for your approval, Agent Plus adds a VS Code notification.

In OpenCode Agent Plus, the tab shows a solid green dot while a turn runs and a green ring when only background work is running. The dot is red when the conversation is waiting for you.

The button under the input box displays counts of running subagents and background commands, such as 1 subagent, 1 command running. On Linux it also counts detached commands and opencode run processes (OpenCode's command that runs a prompt without its terminal interface). You'll hear two rising notes when a turn ends. When the conversation needs your input, a permission request sounds three notes and a question two falling notes.

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-background-and-alerts/