MoonshotAI / MoonshotAI/kimi-code
[Feature Request] 设置中增加自动归档长时间未活跃会话的开关
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
建议
在 Kimi Code 的设置中增加一个可选的「自动归档」功能:
- 允许用户选择是否开启自动归档(默认关闭,由用户主动开启)。
- 开启后,可以设定一个时间阈值(例如 24 小时)。
- 超过该时间未被激活的会话,系统自动将其归档!
原因
我的使用习惯是「一个会话只做一件事」:完成一个小任务后就开启新会话,避免单一会话的上下文过长、爆炸甚至溢出。这导致会话数量增长非常快,目前已经积攒了几千个会话。
手动逐个归档在数量达到这个量级后完全不现实;自行写脚本修改 ~/.kimi-code/sessions/*/state.json 中的 archived 字段虽然可行,但既麻烦又容易出错,普通用户也很难维护。
如果官方能在设置里提供自动归档开关,对像我一样需要频繁开启新会话的用户会非常有帮助,也能让会话列表保持清爽。
环境信息
- Kimi Code CLI 版本:0.23.6
- 操作系统:macOS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the CLI settings flow and session handling around ~/.kimi-code/sessions/*/state.json, especially the archived field. Define how the opt-in setting and inactivity threshold are stored and applied to sessions. Done means users can enable the feature, choose a threshold, and inactive sessions are archived without affecting active ones.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100