窗口切换,导致焦点事件信息打印在kimi cli输入中 || Window switching causes focus event information to be printed in the kimi cli input

Open
#2,107 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
cli

Research direction

Reproduce on Ubuntu 24.04 with i3wm, Terminator, and TERM=xterm-256color by switching windows while kimi is running. Start by locating the CLI's terminal input and focus-event handling; done means the \e[I and \e[O sequences are consumed or disabled and [I/[O no longer appear in the input area.

Written by the indexing model from the issue text.

Description

bug
What version of Kimi Code CLI is running?

1.39.0

Which open platform/subscription were you using?

/setup

Which model were you using?

kimi-for-coding

What platform is your computer?

No response

What issue are you seeing?

▌ 环境: Ubuntu 24.04, i3wm, $TERM=xterm-256color
▌ 现象: 每次 i3 窗口切换,kimi 终端输入区会出现 [O 和 [I 字符
▌ 原因: xterm 焦点事件序列 \e[I / \e[O 未被正确处理
▌ 复现: 任何 xterm-compatible 终端 + i3 下 100% 复现
▌ 期望: kimi-cli 应像 vim/tmux 一样正确消费或禁用焦点事件序列

What steps can reproduce the bug?

启动kimi后,使用相同终端(terminator)+ i3wm,只要切换窗口就会出现

What is the expected behavior?

No response

Additional information

No response


What version of Kimi Code CLI is running?

1.39.0

Which open platform/subscription were you using?

/setup

Which model were you using?

kimi-for-coding

What platform is your computer?

No response

What issue are you seeing?

▌ Environment: Ubuntu 24.04, i3wm, $TERM=xterm-256color
▌ Phenomenon: Every time the i3 window is switched, [O and [I characters will appear in the kimi terminal input area
▌ Reason: xterm focus event sequence \e[I / \e[O is not handled correctly
▌ Reproduction: 100% reproduction under any xterm-compatible terminal + i3
▌ Expectation: kimi-cli should correctly consume or disable focus event sequences like vim/tmux

What steps can reproduce the bug?

After starting kimi, use the same terminal (terminator) + i3wm, it will appear as long as you switch the window

What is the expected behavior?

No response

Additional information

No response

Dominant language
Python
Stars
11.4k
Forks
1.3k
Avg merge
9h 47m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MoonshotAI/kimi-cli

All issues in MoonshotAI/kimi-cli

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.