Skip to content

UI shows background agents as 'running' after they have completed #3412

@nicholasspencer

Description

@nicholasspencer

Description

The terminal UI displays background agents/tasks as still running (e.g., "10 background tasks running") even after all agents have completed and their results have been successfully retrieved via read_agent.

Steps to Reproduce

  1. Launch multiple background agents (e.g., 9 bitsmith agents in parallel)
  2. Wait for all agents to complete (receive completion notifications)
  3. Retrieve results from each with read_agent
  4. Observe the UI still shows tasks as "running"

Expected Behavior

Once an agent completes and its results are read, it should no longer appear as a running task in the UI.

Actual Behavior

The UI continues to show completed agents as running. list_agents correctly returns no running agents, but the UI indicator doesn't update.

Environment

  • Copilot CLI version: 1.0.49
  • OS: macOS (Darwin)
  • Model: Claude Opus 4.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agents

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions