[BUG] Chinese Input Method Candidate Window Not Following Cursor Position

Status Closed — not planned
Maintainer reply None cached
Activity 7 comments · opened Aug 22, 2025 · closed Jan 29, 2026

Describe the bug
When typing Chinese characters in Claude Code, the input method candidate selection window appears at the bottom-left corner of the
screen instead of following the cursor position. This makes it difficult to see candidate characters while typing.

To Reproduce
Steps to reproduce the behavior:

  1. Open Claude Code in a terminal (tested in Zed's integrated terminal)
  2. Switch to Chinese input method (e.g., Pinyin, Sogou, etc.)
  3. Start typing Chinese characters
  4. Observe that the candidate window appears at screen bottom-left instead of near the cursor

Expected behavior
The Chinese input method candidate window should appear near the current cursor position, just like it does in regular terminal
applications.

Screenshots

<img width="1664" height="1405" alt="Image" src="https://github.com/user-attachments/assets/44debc6f-dec0-4532-8593-31d9cb05fdcd" />

Environment:

  • OS: macOS 15.3.1 (Build 24D70)
  • Claude Code version: 1.0.88
  • Terminal: Zed (v0.200.4 ) integrated terminal
  • Input method: Chinese Pinyin (tested with system built-in and third-party input methods)
  • Architecture: Apple Silicon

Additional context

  • The issue only occurs within Claude Code
  • Regular terminal applications (Terminal.app, iTerm2) work correctly with Chinese input methods
  • The cursor position information seems not to be properly communicated to the macOS input method system
  • This affects productivity when writing Chinese content or comments

View original on GitHub ↗

7 Comments

github-actions[bot] · 1 year ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/3343
  2. https://github.com/anthropics/claude-code/issues/2237
  3. https://github.com/anthropics/claude-code/issues/1547

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

Lawrenauh · 1 year ago

some problem with gemini cli in Zed's integrated terminal

github-actions[bot] · 10 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

cerchiostella · 9 months ago

I'm experiencing the same issue on Windows.

Environment:

  • OS: Windows 11 (Build 26200.7462)
  • VS Code: 1.107.1
  • Claude Code: v2.0.76
  • IME: Microsoft IME (Japanese)

Issue:
When using Claude Code inside VS Code's integrated terminal, the IME candidate window appears at the bottom-right corner of the screen instead of near the cursor position.

Important findings:

  • The issue ONLY occurs while Claude Code is running
  • After typing /exit to quit Claude Code, the IME candidate window returns to the correct position
  • This does not happen in other applications or even in VS Code's terminal before launching Claude Code
  • Reinstalling VS Code, clearing cache, and disabling GPU acceleration did not fix the issue
  • The same issue also occurs with Gemini CLI, suggesting the problem might be related to a common Node.js terminal UI library (like Ink) rather than Claude Code specifically
  • Tested on WezTerm as well - same issue occurs
  • However, the issue does NOT occur on Windows Terminal (PowerShell) - IME works correctly there

This suggests the bug might be related to how Claude Code interacts with certain terminal emulators' IME handling.

github-actions[bot] · 8 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

marcindulak · 8 months ago

This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497. Please upvote that issue, so maybe it gets noticed.

github-actions[bot] · 8 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.