Incorrect Cursor Position in Agent CLI Input Box with Thai/Multi-byte Characters

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

Bug Report: Incorrect Cursor Position in Agent CLI Input Box with Thai/Multi-byte Characters

Description

When typing Thai characters (or other multi-byte characters) in the Cursor Agent CLI input box, the cursor position becomes incorrect. The cursor appears to be offset from the actual typing position, making it difficult to edit text accurately.

Steps to Reproduce

Steps to Reproduce

  1. Open Cursor IDE
  2. Open Agent CLI (Command Palette → “Cursor: Agent” or use the Agent input box)
  3. Start typing Thai characters (e.g., “ที่นี่จ้า”)
  4. Observe that the cursor position is incorrect - it appears offset from where the text is actually being inserted

Expected Behavior

Expected Behavior

The cursor should be positioned correctly at the end of the typed text, matching the actual insertion point.

Operating System

MacOS

Version Information

CLI Version 2026.01.28-fd13201
Model Auto
OS darwin (arm64)
Terminal apple-terminal
Shell zsh

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report. The team is aware of issues with cursor positioning in the CLI input box. It’s being tracked, and your case with Thai and other multi-byte characters adds important context.

A couple of similar issues:

There’s no workaround yet, but the bug doesn’t fully block work. Let me know if you notice any patterns in when it gets worse or works better.