MoonshotAI / MoonshotAI/kimi-code
Cyrillic input doubles every character in Windows Terminal (regression from OpenCode fix)
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
- Open Windows Terminal
- Run kimi
- Switch keyboard layout to Russian
- 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
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
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