UI shows background agents as 'running' after they have completed
- Dominant language
- Shell
- Stars
- 11.2k
- Forks
- 1.9k
- Avg merge
- 14h 16m
- Merged PRs (30d)
- 6
Description
## 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
Contributor guide
Assessment
This issue has not been assessed yet.