bug: 删除全部任务后 Windows 任务栏仍显示 1 个角标
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 401
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
### 问题描述 / What happened
在 Windows Desktop 客户端中,已经将任务列表中的任务全部删除,但应用图标右下角仍然显示红色角标 。软件重启可消失。
日志与诊断证据 / Logs & diagnostics
问题发生时,Global 客户端持续访问一台远程设备。设备 ID 已脱敏为:
6c46e58a…
日志反复出现远程任务列表同步失败:
device-link request timeout
channel=local-db:sessions:list
code=DEVICE_LINK_TIMEOUT
还出现设备离线或连接不可用:
DEVICE_LINK_DEVICE_UNRESPONSIVE
DEVICE_LINK_NOT_CONNECTED
DEVICE_OFFLINE
客户端也在持续尝试读取已经不存在的任务:
Error occurred in handler for 'local-db:sessions:get':
Error: [NOT_FOUND] Session 不存在
其中一条远程任务记录明确返回:
[NOT_FOUND] Session lv76hc3hvc2eagf4ctia9ts1 not found
在任务删除后,日志仍继续出现上述 NOT_FOUND,同时任务栏角标保持为 1。
lv76hc3hvc2eagf4ctia9ts1 是目前最明显的残留 session 线索,但尚未通过运行时角标快照日志证明它就是最终贡献该 1 的唯一 session。
### 环境 / Environment
Cindy 版本:0.1.83
平台:Windows 64-bit
安装方式:Windows 安装包
版本区域:Global
同时连接过其他 Cindy 设备
发生时间:2026-09-16
### 复现步骤 / Steps to reproduce
1. 在 Cindy 中创建或打开多个任务。
2. 使其中一个任务产生“需要关注”状态,例如任务完成、报错或等待用户处理。
3. 在另一台设备离线、连接不稳定或任务列表尚未完成同步时删除相关任务。
4. 将当前客户端中所有可见任务全部删除。
5. 观察应用内任务列表为空。
6. 查看 Windows 任务栏上的 Cindy 图标。
结果:图标仍显示红色角标 1。
### 日志与截图 / Logs & screenshots
Contributor guide
Research direction
Start with the Windows taskbar badge update path and the `local-db:sessions:list` and `local-db:sessions:get` handlers named in the logs. Reproduce the offline or unsynchronized deletion scenario and trace whether the missing session leaves a pending count; done means an empty task list clears the badge and regression coverage verifies it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100