CommandCodeAI / CommandCodeAI/command-code
Korean IME composition (marked) text renders at bottom of screen instead of at the input position
まだ誰も着手していません。
- 主要言語
- 言語のデータがありません
- スター
- 4k
- フォーク
- 350
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Summary
When typing Korean text with the macOS built-in Korean input source (2-Set Hangul), the in-progress IME composition (marked text) is rendered at the bottom of the terminal screen instead of at the prompt input position. This affects all CJK input methods that rely on inline composition and makes Korean input hard to use, since the user cannot see the composing characters next to the text already entered in the input box.
Expected Behavior
The IME composition (marked) text should appear inline at the input cursor position, inside the prompt input box — i.e. the TUI should move the hardware terminal cursor to the input position while composing so the terminal emulator renders the composition view there.
Actual Behavior
The composition string appears at the bottom-left area of the screen, detached from the input box. After the composition is committed, the finalized text correctly appears in the input box — only the in-progress composition is misplaced. This suggests the TUI never repositions the hardware cursor to the input field (no cursor positioning during input), so the terminal emulator draws its IME composition view wherever the cursor happens to be parked.
Steps to reproduce the issue
- On macOS, enable the Korean input source (System Settings > Keyboard > Input Sources > Korean - 2-Set Hangul).
- Start
cmdin a terminal (reproduced in the Orca embedded terminal; likely affects other terminals as well). - Switch to the Korean input source and type any Korean syllable, e.g. press
gks(한) slowly without committing. - Observe that the composing character appears at the bottom of the screen rather than in the input box.
Environment
- Command Code Version: 0.52.1
- Operating System: macOS 26.5.2 (arm64)
- Terminal: Orca (embedded terminal)
- Shell: zsh (/bin/zsh)
Additional context
- Reproduces with the stock macOS Korean IME; no third-party IME involved.
- The same inline-composition mechanism is used by Japanese and Chinese input methods, so those users are likely affected too.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、macOS の韓国語 IME を使い、TUI の cmd エントリポイントから問題を再現し、その後、報告で説明されているプロンプト入力とハードウェアカーソル処理を追跡します。完了条件は、マーク付きの韓国語・日本語・中国語のコンポジションが入力カーソル位置に表示され、確定済みテキストが正しいままであることです。
索引モデルが issue の本文から書いたものです。
評価
- 領域
- cli, internationalization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100