makecindy / makecindy/cindy

所有任务完成后,会话右下角状态图标仍显示「执行中」

Open
#3,069 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
401
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: ayayayayo
**客户端版本**: 0.1.55

---

# 现象

一个会话的所有任务都已完成,但该会话右下角的状态图标仍然显示「执行中」。

# 复现步骤(不确定,首次出现)

1. 在会话中通过 Agent 工具并行启动了 3 个后台子代理(探索任务)
2. 3 个子代理全部因 API 错误异常终止(错误信息:`API Error: 400 ... Invalid model name passed in model=claude-opus-5`)
3. 此后会话继续正常执行多轮同步工具调用(文件读写、shell 命令等)并正常输出回复,已无任何存活的后台任务
4. 全部任务结束后,右下角状态图标仍停留在「执行中」,未复位为空闲

推测:后台子代理以 API 错异常终止后,其运行状态可能未被正确清除或聚合,导致会话级「执行中」状态无法归零。此为推测,未验证。

# 期望行为

所有任务(含后台子代理)结束后,会话状态图标应回到空闲状态。

# 实际行为

状态图标持续显示「执行中」,与会话实际任务状态不符。

# 复现频率

首次遇到,暂无更多复现数据。

# 已尝试的解决办法

尚未尝试任何操作(未刷新界面、未重启应用)。

# 诊断摘要(已脱敏)

- 该会话通过 Agent 工具启动过 3 个后台子代理,全部异常终止
- 终止原因均为 API 400 错误:「Invalid model name passed in model=claude-opus-5」
- 异常终止后会话仍能正常完成后续多轮工具调用与回复,无存活后台任务
- 此时用户界面右下角状态图标仍显示「执行中」
---
**版本区域**: CN
**OS**: darwin arm64 (25.6.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by tracing how the session status icon aggregates active tasks and how failed background subagents are cleaned up after API errors; try reproducing the three-parallel-subagent scenario if possible. Done means the icon returns to idle after all foreground and background tasks terminate, including exceptionally.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.