MoonshotAI / MoonshotAI/kimi-code
feat(tui): statusline — let custom line coexist with built-in tips; expose background task counts in payload
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
Problem
Two limitations of the [status_line] command integration:
- All-or-nothing rendering. When a custom statusline command is configured, its output replaces the entire footer line 1 — the built-in rotating tips (the feature-discovery slot) disappear completely. Users who want a custom status line lose the tips slot for good.
- Payload gaps. The JSON snapshot fed to the external command includes model/cwd/git/permission/context/session, but not the background task counts (bash tasks / subagents) that the built-in slots can show as
[N tasks running]. A custom statusline therefore cannot surface "background work is running" — arguably the most glanceable signal.
Proposal
- When the custom line is present, keep rendering the built-in tips on the right side if space allows (custom content left, tips right).
- Add
backgroundTasksandbackgroundAgentsto the statusline payload.
Both changes are backward-compatible: existing configs behave the same unless they use the new payload fields.
Context
We run both as small local patches today (custom line + tips coexistence; payload enrichment) and would happily delete them. If the direction is acceptable (/approve), I can open a PR.
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
Locate the TUI statusline implementation for the [status_line] command integration and the JSON snapshot sent to external commands. Verify that custom content and built-in tips can render together when space allows, and that the payload exposes backgroundTasks and backgroundAgents without changing existing configurations.
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