github / github/copilot-cli

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

未关闭
#3,412 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:agents
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

## 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

贡献指南

打开贡献指南

调研方向

Start at the terminal UI's background-task indicator and trace how its state is updated after the `read_agent` entry point retrieves results. Compare that state with the empty result from `list_agents` when all agents have completed. Done means the UI no longer counts completed agents as running after their results are read.

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。