Skip to content

[Bug] Fcitx5/Rime IME Enter key and candidate-window issues in integrated terminal #1375

Description

@cxiaoxiong

Before Submitting

  • I searched existing issues and did not find a duplicate.
  • I can reproduce this issue on the latest release (or latest main build).
  • I included reproducible details (environment, steps, expected and actual behavior, and evidence), not only a code-level suggestion.

Bug Summary

Bug Summary

On Ubuntu with Fcitx5 + Rime (Xiaohe Shuangpin), I found two IME-related issues in VMark's integrated terminal.

Issue 1

When Rime is in Chinese input mode, pressing Enter cannot commit the raw Latin letters / pinyin text.

This happens both:

  • directly at the Bash prompt in VMark's integrated terminal
  • inside Claude Code
  • inside Codex CLI

I have to manually switch the input method to English mode before I can reliably enter English text or commands.

Issue 2

The normal Bash prompt itself does not flicker when using Rime, but after starting Claude Code or Codex CLI, the IME composition/input area flickers while typing.

In addition, when Claude Code or Codex CLI is first opened, the Fcitx5/Rime candidate/preedit window can appear in the wrong place on the screen instead of below the terminal caret.

After resizing, maximizing, or dragging the VMark window once, the candidate window moves back to the correct position.


Environment

  • OS: Ubuntu 24.04.4 LTS
  • Session: Wayland
  • Shell: /bin/bash
  • Input method framework: Fcitx5
  • Input method: Rime
  • Scheme: Xiaohe Shuangpin (小鹤双拼)
  • VMark: latest release
  • Installation: .deb
  • Claude Code: installed via npm/nvm
  • Codex CLI: installed via npm/nvm

Session type:

echo $XDG_SESSION_TYPE

### Operating System

Linux

### VMark Version

VMark_0.9.65_amd64

### Install Method

DMG / Installer Download

### Steps to Reproduce

1. Open VMark on Ubuntu 24.04.4 LTS under Wayland.
2. Open VMark's integrated terminal.
3. Use Fcitx5 + Rime with Xiaohe Shuangpin enabled.
4. Keep the input method in Chinese mode.
5. At the normal Bash prompt, type raw Latin text such as `claude`.
6. Press `Enter` to try to commit the raw Latin/pinyin text.
7. Start Claude Code or Codex CLI in the integrated terminal.
8. Begin composing Chinese text inside the Claude Code / Codex interactive input field.
9. Observe the IME candidate/preedit window position.
10. Resize, maximize, or drag the VMark window once and observe whether the IME candidate window position changes.

### Expected Behavior

- While Fcitx5/Rime is in Chinese mode, pressing `Enter` should be able to commit raw Latin/pinyin text such as `claude`, without requiring me to manually switch to English input mode first.
- Chinese IME composition inside Claude Code and Codex CLI should not flicker.
- The Fcitx5/Rime candidate/preedit window should appear near the terminal caret immediately.
- Resizing or dragging the VMark window should not be required to correct the IME candidate window position.
- Behavior should be similar to the Ubuntu system terminal.

### Actual Behavior

There are two reproducible issues.

1. Enter cannot commit raw Latin/pinyin text in Chinese IME mode

When Fcitx5/Rime is in Chinese mode and I type raw Latin text such as `claude`, pressing `Enter` does not commit the text as expected.

This happens both:
- at the normal Bash prompt in VMark's integrated terminal
- inside Claude Code
- inside Codex CLI

I have to manually switch the input method to English mode first before I can reliably enter English commands or words.

2. IME flickering and incorrect candidate-window position in Claude Code / Codex CLI

At the normal Bash prompt, Chinese input does not flicker.

However, after starting Claude Code or Codex CLI, the Chinese IME composition/input area visibly flickers while typing.

Also, when I first start typing, the Fcitx5/Rime candidate/preedit window may appear in a corner of the screen instead of near the terminal caret.

After resizing, maximizing, or dragging the VMark window once, the candidate window moves back to the correct position near the caret.

### Logs, Screenshots, or Repro

Environment:

```text
OS: Ubuntu 24.04.4 LTS
Session: Wayland
Shell: /bin/bash
Input method framework: Fcitx5
Input method: Rime
Scheme: Xiaohe Shuangpin
VMark installation: .deb
WebGL Renderer: OFF
Shell Integration: ON

### Additional Context

_No response_

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions