MoonshotAI / MoonshotAI/kimi-code
[Feature Request] status_line 增加 title 内置槽位,支持在 footer 显示会话标题
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
你希望看到什么功能?
希望 [status_line].items 增加一个 title 内置槽位,用于在 TUI footer 第 1 行显示当前会话标题(即 /title 设置的名字),例如:
[status_line]
items = ["mode", "goal", "model", "tasks", "cwd", "git", "title"]
这样可以在保留内置布局(颜色、thinking effort、cwd 缩写、git 增删统计等)的前提下,仅把右下角的 tips 提示替换为会话标题。
补充信息
当前版本(0.39.1)的内置槽位只有 mode, goal, model, tasks, cwd, git, tips,没有 title。
尝试过的替代方案及不足:
[status_line].command自定义脚本:会整行替换 footer 第 1 行,内置布局(各槽位的颜色、cwd 缩写、git diff 统计[+8 -2]、thinking effort 显示)全部丢失,脚本难以完整复刻。- 快照字段不足:传给 command 的 JSON 快照(model / cwd / gitBranch / permissionMode / planMode / contextUsage / sessionId / version 等)不含 thinking effort 和 git diff 统计,也不含会话标题本身(需要脚本按 sessionId 去
~/.kimi-code/sessions/*/state.json反查,属于依赖内部文件格式的脆弱做法)。
相关 issue:#2436(footer 第 2 行不可配置、快照缺少配额信息)也反映了类似的 footer 定制需求。
使用场景:同时开多个会话时,直接在状态栏看到当前会话标题,便于区分和确认上下文,无需打开 /sessions 列表。
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 with the status_line configuration and the implementation of existing built-in slots, especially tips, then trace how /title stores and exposes the session title. Add title as a selectable slot while preserving the built-in layout, and verify that choosing it replaces tips with the current /title value in the TUI footer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100