Skip to content

chore(tui): remove shortcut newline telemetry#1311

Merged
liruifengv merged 2 commits into
mainfrom
chore/remove-shortcut-newline-telemetry
Jul 2, 2026
Merged

chore(tui): remove shortcut newline telemetry#1311
liruifengv merged 2 commits into
mainfrom
chore/remove-shortcut-newline-telemetry

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Related Issue

No related issue — this is an internal cleanup.

Problem

The TUI prompt editor intercepted newline inputs (including Ctrl+J) only to fire a shortcut_newline telemetry event. The editor already handles Shift+Enter and Ctrl+J natively, so this interception duplicated built-in behavior, and the Shift+Enter telemetry coverage was incomplete.

What changed

  • Removed the custom newline interception in the prompt editor; newline input now flows straight to the editor, which handles Shift+Enter and Ctrl+J on its own.
  • Removed the shortcut_newline telemetry event and its wiring.
  • Updated the affected tests accordingly.

No user-facing behavior change: Shift+Enter and Ctrl+J still insert newlines as before.

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.

The prompt editor no longer needs custom newline interception: the underlying editor handles Shift+Enter and Ctrl+J natively. Drop the interception along with the shortcut_newline telemetry hook.
@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9e71e0b

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

@pkg-pr-new

pkg-pr-new Bot commented Jul 2, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@9e71e0b
npx https://pkg.pr.new/@moonshot-ai/kimi-code@9e71e0b

commit: 9e71e0b

@liruifengv liruifengv merged commit b40649b into main Jul 2, 2026
9 checks passed
@liruifengv liruifengv deleted the chore/remove-shortcut-newline-telemetry branch July 2, 2026 11:38
@github-actions github-actions Bot mentioned this pull request Jul 2, 2026
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.

1 participant