3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Claude Code CLIで日本語IMEの変換・候補ウィンドウの位置がずれる問題

3
Posted at

Claude Code CLIでは日本語IMEの変換候補ウィンドウの位置がズレます。

s-2026-03-09_17h15_14.jpg

あまりにもIME関係のバグが多くてみんな諦めてるせいか日本語で検索しても全然情報が出てこなかったので英語圏で調べてみたら原因がわかったのでメモとして残しておきます。

原因

原因は Claude Code CLI が内部で使っている React Ink の挙動です。

Ink の useCursor が 本来のカーソルを隠し仮想のカーソル表示させているのですが、その時本来のカーソルの位置を左下に固定してしまうためIMEの候補ウィンドウがズレて表示されてしまいます。


修正済みだが最新版でも未反映(2026-03-09時点)

この問題自体はink >= 6.7.0ですでに修正済み。
ただし現時点では Claude Code CLIがまだこのバージョンを取り込んでいないのでユーザーができる対策はありません。大人しく修正を取り込んだリリースを待ちましょう。

参考

https://github.com/anthropics/claude-code/issues/25186
https://cacheoverflow.dev/blog/M5yrbtvz

雑記

ところでIMEの候補や変換のためのウィンドウの正式名称って決まってるんでしょうか?
韓国語や中国語を使ってる人のポストだと candidate/composite window といった表現がされる事が多いようですが名付けは大事なので誰か命名してくれませんか?

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?