zai-org / zai-org/feedback

【建议 / Feature】桌面端会话的开启/删除状态本地持久化:彻底退出后重启应还原关闭前的会话列表

Open
#691 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P2
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

提交前确认 · Pre-submission checklist
  • 我已搜索过现有 issue,确认这不是重复提议 / I searched existing issues and confirmed this isn't a duplicate.
  • 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.
问题类别 · Category

UI / 界面体验 · UI / UX

涉及的 Agent 框架 · Agent framework

不涉及框架 · Not framework-specific

使用场景 · Use case

桌面端日常整理会话:删掉不再需要的、把手头正在推进的几个留在列表里。但彻底退出应用再打开后,会话的这些状态(哪些开启、哪些已删除)没有按关闭前的样子还原,相当于本次整理没有被记录下来,要重新整理一遍。如果这本应是持久化功能而实际没生效,请按 Bug 处理。

建议方案 · Proposal
  1. 会话的开启/删除等列表状态在本地持久化(用户配置目录下的状态记录即可);
  2. 彻底关闭应用时落盘一次状态快照;
  3. 重启后按快照还原会话列表:已删除的不再出现,保留开启的入口。
预期价值 · Expected value
  • 重启后会话列表可预期,不用反复重新整理;
  • 长期使用的用户会话数量大,状态丢失后重新整理的成本高;
  • 与「会话即档案」的定位一致:状态可靠是信任的基础。
你认为的优先级 · Your perceived priority

P2 · 日常使用可靠性

你使用的 ZCode 版本 / 环境 · ZCode version / environment

Windows 10(19045)桌面版

补充材料 · Additional context

相近但不同的既有 issue:#617(CLI 创建的会话不出现在侧栏)、#559(重启后消息在库但窗格冻结)——本条聚焦「会话列表状态在彻底退出后的本地持久化与还原」。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read CONTRIBUTING.md first, then locate the desktop session-list state handling and the application shutdown/startup lifecycle. Verify how opened and deleted sessions are represented and where user configuration is stored. Done means a clean exit preserves the session list state so reopening the app hides deleted sessions and retains the intended entries.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.