Skip to content

IME candidate window misplaced when slash-command autocomplete is active #5102

@smoosex

Description

@smoosex

What happened?

When using a CJK input method (e.g. macOS Chinese Pinyin) in pi's interactive mode, typing / at the start of a line triggers the slash-command autocomplete menu. Once the menu appears, the IME candidate window is positioned at the wrong location — often far below the cursor or at the bottom of the terminal — instead of directly above the text cursor.

The editor still accepts input, but the candidate window no longer tracks the cursor, making CJK input unusable during slash commands.

Image

Steps to reproduce

  1. Start pi in interactive mode.
  2. Switch to a CJK input method (e.g. macOS Chinese Pinyin).
  3. Type / at the beginning of the input line.
  4. Start typing any character (e.g. s for "收拾").
  5. Observe that the IME candidate window appears in the wrong position, detached from the cursor.

Expected behavior

The IME candidate window should remain anchored to the text cursor even while the slash-command autocomplete menu is visible, just as it does during normal text input.

Image

Version

0.76.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpossibly-openclaw-clankerUser has activity on openclaw/openclaw

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions