Fcitx Chinese IME problem

Hyprland DE

I’ve set XMODIFIERS and QT_IM_MODULE in zsh.sessionVariables following fcitx’s official guide.

The problem is fairly simple:
fcitx works totally fine if I launch an app like vscode in terminal emulators and it can normally type Chinese characters.
However, once I use a launcher (wofi for me now), the ime won’t work but can switch input methods. The popup window is on the left-top of the screen.

Non-electron apps have the same issue.
Firefox works fine btw.

I guess it could be some environment-specific problems as wofi runs under tty but terminal is under pts/n

Well that’s unsurprising because you used zsh to configure the envvars which means it only works in zsh.
What distro/OS are you using?