fix(kimi-code): render newlines instead of literal backslash-n in rc output - #3244
Merged
Conversation
|
commit: |
sailist
force-pushed
the
feat-000-08-06-rc
branch
from
August 25, 2026 13:09
1194e2d to
1b2218f
Compare
sailist
force-pushed
the
feat-000-08-06-rc
branch
from
August 25, 2026 13:19
1b2218f to
60579b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Follow-up fix to #3034 (merged). The bug ships only with that unreleased feature, so no separate issue.
Problem
kimi rc(kimi web --remote-control) printed literal\ncharacters instead of line breaks in its terminal output — the entire banner, status lines, and QR footer rendered as one wrapped blob of text.What changed
In
apps/kimi-code/src/cli/sub/web/remote-control.ts, five places used a double-escaped'\\n'(literal backslash + n) instead of a real newline:formatRemoteControlOutputjoined its lines with.join('\\n').formatRemoteControlStatusended all four status templates with\\n.Both now use
'\n', so the output renders with actual line breaks. No behavior change beyond the visible formatting fix.Verified with the existing CLI/TUI web test suites (
test/cli/web/web.test.ts,test/tui/commands/web.test.ts, 76 tests) and a rebuilt SEA binary.Checklist
/approve).gen-changesetsskill, or this PR needs no changeset. (No changeset: the bug is part of the unreleased Remote Control feature whose changesetadd-remote-control.mdis still pending release.)gen-docsskill, or this PR needs no doc update.