makecindy / makecindy/cindy

[Bug] 项目文件夹在应用重启后全部自动展开

Open
#2,450 2 comments 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

## 问题描述
应用每次重启后,项目区域中的各个文件夹都会自动展开,即使用户在退出前已经手动收起它们。

## 复现步骤
1. 在侧边栏创建或打开多个项目/项目文件夹。
2. 将其中多个文件夹收起。
3. 重启应用。
4. 重新进入侧边栏并查看项目区域。

## 实际结果
所有项目文件夹在重启后都变成展开状态。项目数量较多时,侧边栏会变得很长,普通对话入口被推到很下面;用户还需要逐个手动收起文件夹。

## 期望结果
重启后应保留每个文件夹的展开/收起状态;如果当前没有持久化展开状态,至少默认将项目文件夹保持收起,避免大量项目占满侧边栏。

## 影响
项目数量较多时,进入普通对话需要长距离滚动,并逐个收起项目文件夹,严重影响日常使用效率。

## 环境
- Cindy 版本:未提供
- 操作系统:未提供

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by tracing the sidebar project-folder UI and how its expanded state is initialized across an application restart. Reproduce the reported steps with multiple folders, then verify that collapsed states persist or that folders default to collapsed without pushing the normal conversation entry out of view.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.