makecindy / makecindy/cindy

后台子任务失败后界面仍显示运行中,无错误提示导致用户长时间等待

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

Description

**提交人**: 用户9511
**客户端版本**: 0.1.64

---

## 现象

在对话中并行发起多个后台子任务(subagent)后,部分子任务因上游 API 错误提前终止,但主界面没有任何失败提示,任务仍显示为"运行中"。用户视角:模型额度充足,但任务超过 170 分钟未完成、无任何进度或完成通知,只能一直等待。

## 复现步骤

1. 在会话中并行发起多个后台子任务
2. 子任务使用的默认模型在当前 API 网关不可用(上游返回 HTTP 400:"Invalid model name passed in model=claude-opus-5")
3. 子任务实际已失败终止
4. 观察主界面:无错误提示、无失败标记,任务持续显示运行中,用户无限等待

## 实际行为

- 子任务因 API 400 错误终止后,失败状态未上抛到主界面
- 任务列表持续显示运行中,无进度指示
- 用户等待 170+ 分钟无任何结果与提示

## 期望行为

- 后台子任务因 API/配置错误失败时,应在界面及时显示失败原因
- 长时间运行的任务应有可见的进度指示或超时告警

## 复现频率

发生过 2-3 次

## 已尝试

用户持续观察等待(170+ 分钟),任务始终未自行恢复也未给出任何反馈。会话内没有其他可用的排障手段(界面无错误信息可循)。

## 脱敏诊断摘要(用户已同意附上)

- 上游 API 错误:HTTP 400,"Invalid model name passed in model=claude-opus-5"(网关返回,表明子任务默认模型名在该上游不可用)
- 影响范围:同批次并行发起的 3 个后台子任务全部因同一错误终止
- 核心问题:失败信息未传播到主界面,任务状态显示与实际状态不一致,用户无法区分"在运行"还是"已静默失败"

## 附注

建议状态显示与任务实际状态对齐,失败时给出可见错误。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.26200)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Reproduce the report by launching parallel background subagents with the unavailable default model and observe the main task list. Trace the background subtask lifecycle and how its HTTP 400 failure reaches the interface. Done means failed subtasks no longer remain marked as running and their failure reason is visible, with progress or timeout feedback for long-running work.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.