makecindy / makecindy/cindy

[Feature] 项目在所有对话归档后仍保留在项目列表中

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

Description

## 背景

目前项目在侧边栏项目列表中的可见性似乎依赖于项目下是否还有未归档对话。当项目下的对话全部归档后,该项目也会从项目列表中消失。

但“暂时没有活跃对话”并不等同于“这个项目不再需要”。项目本身可以是长期工作的入口和提醒,不应仅因为阶段性对话已归档就不可见。

## 使用场景

1. **方便后续跟进**
某个项目当前阶段的事情已经处理完,可以归档对话,但仍希望把项目保留在侧边栏,作为以后继续处理的入口和提醒。

2. **方便长期维护**
一些项目天然需要长期、间歇性维护。例如专门用于给 Cindy 提 PR / Issue 的项目:完成一轮贡献并归档相关对话后,项目会消失;过一段时间,用户可能不容易想起或找到这个长期维护入口。

## 期望行为

- 项目下所有对话归档后,项目仍显示在项目列表中。
- 项目没有任何活跃对话时,可以显示空状态,并允许用户从该项目继续创建新对话。
- 已归档对话仍保持归档,不因项目继续显示而自动恢复。
- 项目只有在用户明确删除项目时才从项目列表移除,而不是由其活跃对话数量决定。
- 重启 Cindy 后,该项目的可见状态保持一致。

## 验收建议

- [ ] 创建项目并挂载至少一个对话。
- [ ] 归档该项目下的全部对话。
- [ ] 项目仍出现在项目列表中。
- [ ] 点击项目后能看到合理的空状态,并可在该项目下新建对话。
- [ ] 新建的对话正确归属于该项目,原对话仍保持归档。
- [ ] 重启应用后,项目仍然可见。
- [ ] 显式删除项目后,项目才从列表中消失。

## 补充说明

相关但不同的 Issue #21 讨论的是不同会话筛选状态下的项目级“全部归档 / 全部取消归档”菜单。本 Issue 关注的是:项目不应因为活跃对话数量变为 0 而从项目列表消失。

Contributor guide

Open the contributing guide

Research direction

Reproduce the workflow by creating a project, attaching a conversation, archiving it, and restarting the app. Trace the project-list visibility and persistence entry points, then verify that an empty project remains visible, can create a new conversation, preserves archived conversations, and disappears only after explicit deletion.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.