CommandCodeAI / CommandCodeAI/command-code

Improve Korean (Hangul) input in the terminal — composing text is not visible

未關閉
#880 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
沒有語言資料
星號
4k
分支
350
PR 合併指標
30 天內沒有已合併 PR

描述

Request

Korean (Hangul) input in the interactive prompt is hard to use: the IME composing (pre-edit) text is not shown in the input box, so you cannot see what you are typing until each syllable/word is committed. The same terminal works fine with Codex and Claude Code.

Please improve Hangul input handling in the terminal TUI so composing text is visible while typing.

Environment

  • Command Code 1.56.0 (latest)
  • macOS arm64 (Darwin 25.6.0)
  • iTerm2 3.6.11, TERM=xterm-256color, LANG=ko_KR.UTF-8, Korean 2-set IME

Steps to reproduce

  1. Run cmd in iTerm2 with the Korean IME active
  2. Focus the prompt input and type 한글
  3. No pre-edit is displayed while composing - only the committed text appears

Notes

  • dist/cli.mjs has no composition handling at all (isComposing, compositionupdate, preedit, markedText: zero occurrences), and the kitty keyboard protocol is pushed at startup (resolveKittyKeyboard with disambiguateEscapeCodes). There is no setting, config key, or env var to opt out.
  • ctrl+g (external editor) is the only usable workaround right now.

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先,使用韓語 2-set IME 在互動式提示字元中重現問題,然後檢查 dist/cli.mjs 以及 resolveKittyKeyboard 和 disambiguateEscapeCodes 附近的啟動路徑。追蹤終端輸入如何到達 TUI,並找出組字事件的處理位置。當輸入時能顯示 Hangul 預編輯文字,且已提交的文字仍能正常運作時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

領域
cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。