CommandCodeAI / CommandCodeAI/command-code
Improve Korean (Hangul) input in the terminal — composing text is not visible
未关闭
还没有人认领这个 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
- Run
cmdin iTerm2 with the Korean IME active - Focus the prompt input and type
한글 - No pre-edit is displayed while composing - only the committed text appears
Notes
dist/cli.mjshas no composition handling at all (isComposing,compositionupdate,preedit,markedText: zero occurrences), and the kitty keyboard protocol is pushed at startup (resolveKittyKeyboardwithdisambiguateEscapeCodes). There is no setting, config key, or env var to opt out.ctrl+g(external editor) is the only usable workaround right now.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用韩语 2-set IME 在交互式提示符中复现该问题,然后检查 dist/cli.mjs 以及 resolveKittyKeyboard 和 disambiguateEscapeCodes 附近的启动路径。跟踪终端输入如何到达 TUI,并确定组合事件的处理位置。当输入时能够显示 Hangul 预编辑文本,且已提交的文本仍能正常工作时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100