MoonshotAI / MoonshotAI/kimi-code

Cyrillic input doubles every character in Windows Terminal (regression from OpenCode fix)

Open
#1,978 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

Description

When typing Russian/Cyrillic characters in kimi-code TUI inside Windows Terminal, every character is inserted twice (e.g., ппррииввеетт). English input works fine. The bug does NOT occur in git-bash or cmd — only in Windows Terminal.

Version

kimi-code v0.28.1 (also reproduced on v0.27.0)

Environment

  • OS: Windows 10/11
  • Terminal: Windows Terminal (Preview)
  • Shell: PowerShell 7

Steps to reproduce

  1. Open Windows Terminal
  2. Run kimi
  3. Switch keyboard layout to Russian
  4. Type any Russian word — every character appears doubled

Root cause

This is a known OpenCode bug that was fixed in OpenCode v1.3.17 (see anomalyco/opencode#19746). The fix was: Restored the default kitty keyboard handling on Windows terminals to avoid input issues from the workaround rollback (OpenCode v1.3.17 release notes, commit 517e6c9).

The fix appears to have been lost in the kimi-code fork — the kitty keyboard protocol is likely still enabled unconditionally on Windows Terminal, causing wide-char (Cyrillic) input to be processed twice.

Workaround

Use git-bash or kimi web instead of Windows Terminal.

Related

  • OpenCode fix: v1.3.17Restored the default kitty keyboard handling on Windows terminals
  • OpenCode issue: #19746 — Дублирование ввода русских букв
  • OpenCode issue: #20085 — Cyrillic symbols doubling in Windows Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the doubled Cyrillic input in kimi-code v0.28.1 on Windows Terminal with PowerShell, then compare the fork's kitty keyboard handling with OpenCode v1.3.17 and commit 517e6c9. Done means Russian characters are inserted once in Windows Terminal while English input and the git-bash and cmd behavior remain unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.