Skip to content

feat(tui): support multiline status commands - #2462

Open
ousamabenyounes wants to merge 1 commit into
MoonshotAI:mainfrom
ousamabenyounes:fix/issue-2448
Open

feat(tui): support multiline status commands#2462
ousamabenyounes wants to merge 1 commit into
MoonshotAI:mainfrom
ousamabenyounes:fix/issue-2448

Conversation

@ousamabenyounes

Copy link
Copy Markdown

Related Issue

Resolve #2448

Problem

status_line.command discarded everything after the first stdout line, preventing custom HUD-style footers from presenting multiple pieces of status information without crowding a single row.

What changed

  • Preserve byte-capped command stdout instead of stopping at the first newline.
  • Render up to five custom status lines, followed by the existing context readout.
  • Keep single-line commands and failure fallback behavior unchanged.
  • Document the behavior in the generated configuration guide and the English and Chinese configuration reference.
  • Add a patch changeset for the Kimi Code package.

Test verification (RED → GREEN)

RED on origin/main with the regression tests only:

FAIL footer-status-line.test.ts
expected 'first\nsecond', received 'first'
expected ['model', 'branch', 'quota', context], received ['model', context]

GREEN with this patch:

Test Files  2 passed (2)
Tests       34 passed (34)

Full local suite: passed.

Test Files  1034 passed | 12 skipped (1046)
Tests       16862 passed | 3 expected fail | 83 skipped | 2 todo (16950)
Build       Kimi Code package passed

An additional full-suite run encountered one unrelated Vitest worker-exit error in packages/kap-server/test/prompts.test.ts; rerunning that file passed 27/27.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c5c3bb9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(tui): support multi-line output from status_line.command (align with Claude Code statusLine contract)

1 participant