Skip to content

VS Code background-agent panel does not update when native subagents are spawned #33859

Open

Description

@arikon

What version of the IDE extension are you using?

openai.chatgpt-26.707.91948-darwin-arm64

Which IDE are you using?

Visual Studio Code 1.129.0

What platform is your computer?

macOS (Apple Silicon / arm64)

What issue are you seeing?

The VS Code extension's “background agents” panel does not update immediately when the current Codex session creates new active native subagents.

What steps can reproduce the bug?

  1. Start a Codex task inside the VS Code extension.
  2. Have the main agent invoke the native multi-agent spawn API and create two subagents (in my reproduction, nicknamed Feynman and Epicurus).
  3. While the same session remains open, inspect the “background agents” panel above the composer.
  4. Observe that neither newly created subagent appears.
  5. Leave the session to the session list and reopen the same session while both agents are still running.
  6. Observe that both agents now appear in the “background agents” panel.

What is the expected behavior?

The background-agent panel should update immediately when a new active subagent is created in the current session, without navigating away from or reopening the session.

What is the actual behavior?

The panel remains stale until the session is left and reopened. Until then, the user cannot observe, open, or stop freshly spawned background agents from the IDE UI.

Impact

This prevents real-time monitoring and control of active native subagents from the VS Code extension and makes it easy to miss work that is running in the background.

Additional information

This may indicate a UI hydration or realtime-subscription/update issue, but I am not asserting a root cause.

A related but distinct open issue is #31971, “VS Code reload re-adds closed subagents to the "background agents" count”: #31971. That report concerns completed/closed agents incorrectly reappearing after reload; this report concerns newly active agents not appearing during the live session until reload/reopen.

Activity

  1. added
    bug
    extension
    subagent
    on Jul 17, 2026
  2. github-actions commented on Jul 17, 2026

    @github-actions
    Contributor
  3. JxdeDev commented on Aug 1, 2026

    @JxdeDev

    I also noticed that it does this while the "1 files changed Review" panel is shown. When the main agent finishes.. the sub agents appear in their correct panel.

  4. thiagogenez commented on Nov 5, 2026

    @thiagogenez

    Additional macOS reproduction with a newer extension: agents execute and return results, but the background-agent list above the composer remains absent. The symptom also persists after switching the effective backend to CLI 0.166.0 and reloading the VS Code window.

    Environment

    • macOS, Apple Silicon / arm64.
    • VS Code 1.145.0.
    • Codex extension openai.chatgpt 26.1021.22027.
    • Original effective backend: bundled codex-cli 0.164.0-alpha.11.1.
    • Retest backend: external codex-cli 0.166.0, selected through chatgpt.cliExecutable.
    • Effective backends were verified from extension-host process ancestry; the retest executable was additionally checked using its own --version.
    • Multi-agent execution is enabled; actual delegated tasks complete successfully.

    Reproduction and retest

    1. In an existing Codex IDE conversation, ask the parent to spawn a read-only subagent.
    2. Observe that the child executes and returns its result while the background-agent panel remains absent.
    3. Set chatgpt.cliExecutable to an existing CLI 0.166.0 executable and reload the VS Code window.
    4. Verify that the newly started extension backend is actually 0.166.0.
    5. Spawn a fresh read-only subagent in the conversation. It completes, but the panel still does not appear.

    This retest used a window reload. It does not establish whether the original issue's specific workaround—leaving and reopening the conversation through history while children remain active—works in this installation.

    Event observation on the original bundled backend

    A temporary read-only listener in the inner OpenAI webview counted incoming object shapes during real agent activity:

    {
      "messages": 1373,
      "activities": 7,
      "collaborationCalls": 0,
      "spawnCalls": 0,
      "scanLimits": 0,
      "activityKinds": {
        "started": 2,
        "interacted": 3,
        "completed": 2
      }
    }

    Here, activities means objects with type: "subAgentActivity"; collaborationCalls means type: "collabAgentToolCall"; spawnCalls means those collaboration items with tool: "spawnAgent". No traversal-budget limit was reached. All temporary listeners were removed afterward.

    This event observation belongs to the original 0.164.0-alpha.11.1 run. After switching to 0.166.0, effective process version, successful delegation and continued panel absence were verified, but the payload-shape probe was not repeated.

    Read-only installed-client finding

    In extension 26.1021.22027:

    • local-conversation-background-agents-signals-83e251518d80.js seeds canInteract: true from a matching collab spawn and receiver linkage.
    • subAgentActivity preserves the previous same-parent-turn interaction flag, or defaults to false. Discovery/runtime status does not independently promote it; source fallback can replay cached parent items through the same reducer.
    • composer-content-8ab21f1a1982.js requires interactable current-parent rows with a name, or an interactable running-row count, before showing the panel. Other UI gates also exist.

    This suggests an activity-to-panel linkage gap worth investigating for collaboration/V2 agents. It is a hypothesis, not a confirmed exclusive root cause: live React state, other transports and cached parent history were not exhaustively inspected. Different bundled and external CLI versions alone are not evidence of incompatibility.

    Could maintainers check whether activity-only child creation is sufficient to establish the panel linkage, or whether an additional structured spawn/discovery projection is expected?

    No installed extension code, session storage or security settings were modified. The only configuration change was the explicit executable override for the retest. This report excludes prompts, conversation identifiers, private project contents, raw logs and personal filesystem paths.

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

    bugextensionsubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions