makecindy / makecindy/cindy

灵动岛任务状态粒度过粗:排队/未启动任务也显示『运行中』,建议新增排队中等状态

Open
#590 2 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
TypeScript
Stars
2.7k
Forks
401
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: 大林哥
**客户端版本**: 0.1.14

---

## 使用场景
灵动岛是我最喜欢的功能,核心价值是切到别的页面/窗口时也能实时瞟一眼各个任务跑到哪了。但实际用下来,灵动岛列表里**所有任务卡片的状态徽章一律显示「运行中」**,无论它是真的在执行、还是其实在排队等执行。

当我同时开了多个任务、存在并发排队时,这个徽章完全区分不出「哪些真在跑、哪些还在等」——而这恰恰是我最想用灵动岛实时掌握的信息,于是灵动岛的实时性在这类场景下基本失效。

## 诉求
希望灵动岛(及其背后的任务状态模型)能区分「真正在执行」和「排队/等待执行」两种状态,不要把所有进行中的任务都笼统标成「运行中」。这样我扫一眼列表就知道哪些任务在动、哪些在排队,实时盯进度才有意义。

## 建议方案
- 在任务状态枚举里新增「排队中 / 等待中」(或类似)态,与「运行中」并列;只有真正开始执行的任务才标「运行中」,已提交但尚未轮到执行的标「排队中 / 等待中」。
- 灵动岛列表卡片的状态徽章按上述真实状态渲染,配色/文案与「运行中」做明显区分,便于一眼分辨。
- 若后端目前只有粗粒度状态,可考虑在调度层暴露「是否已拿到执行槽位 / 是否在队列中」的信号,前端据此映射徽章。
---
**OS**: darwin arm64 (25.5.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

No files or tests are named in the report. Start by tracing the task status enum/model through the scheduling layer and Dynamic Island list-card rendering. Done means queued tasks are distinguishable from running tasks, with visibly different status text and colors, while genuinely executing tasks still show «运行中».

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.