Skip to content

[Bug] 0.19.2 在 Ubuntu 26.04 + GNOME 50 Wayland + Ptyxis + ibus-rime 下导致终端焦点循环闪烁 #1090

Description

@TARS-snail

What version of Kimi Code is running?

0.19.2

Which open platform/subscription were you using?

kimi code Allegretto

Which model were you using?

kimi-for-coding (k2.7)

What platform is your computer?

Linux 7.0.0-22-generic x86_64 unknown (ubuntu26.04)

What issue are you seeing?

kimi-code 从 0.19.1 自动更新到 0.19.2 后,启动 kimi 会导致终端窗口反复获得/失去焦点。左侧 Dock 栏中的终端图标会上下短促跳动,无法通过 ibus-rime 输入中文(候选框无法稳定聚焦)。

回退到 0.19.1 后问题完全消失,因此可以确定是 0.19.2 引入的回归 bug。出问题当天没有更新过 GNOME、Ptyxis、GTK 或 ibus 等系统包。

启动 kimi 后,GNOME Shell 日志中大约每秒出现一次以下断言失败:

gnome-shell[5703]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed

本次会话中的时间线:kimi 在 08:58:02 启动,GNOME Shell 从 08:58:03 开始持续报此错误。

What steps can reproduce the bug?

  1. 确保当前是会话类型为 GNOME + Wayland(Ubuntu 26.04,GNOME 50.1)。
  2. 使用 Ptyxis 作为终端模拟器。
  3. 使用 ibus-rime 作为输入法。
  4. 将 kimi-code 升级到 0.19.2
  5. 在 Ptyxis 中启动 kimi
  6. 选中终端窗口。
  7. 观察左侧 Dock 中终端图标开始上下短促跳动。
  8. 尝试用 ibus-rime 输入中文,候选框因为焦点闪烁消失,无法完成输入。

What is the expected behavior?

终端窗口应保持稳定聚焦,ibus-rime 候选框应正常显示,中文输入应像 0.19.1 一样正常工作。

Additional information

  • 0.19.2 上 100% 复现。
  • 同一台机器、同一配置、同一工作负载下,0.19.0 和 0.19.1 不复现。
  • 切换输入法或禁用候选框无法解决焦点闪烁问题。
  • GNOME Shell 的 meta_window_set_stack_position_no_sync 断言失败说明合成器的窗口堆栈进入了无效状态,可能是 kimi 的 TUI 重绘导致 IME 候选框窗口被频繁创建/重定位所触发。

临时 workaround

  1. 下载 0.19.1 二进制覆盖当前版本:

    curl -fsSL -o /tmp/kimi.zip "https://github.com/MoonshotAI/kimi-code/releases/download/@moonshot-ai/kimi-code@0.19.1/kimi-code-linux-x64.zip"
    unzip -q /tmp/kimi.zip -d /tmp
    cp /tmp/kimi ~/.kimi-code/bin/kimi
  2. ~/.kimi-code/tui.toml 中关闭自动更新:

    [upgrade]
    auto_install = false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions