MoonshotAI / MoonshotAI/kimi-code
[TUI] iTerm2 中审批弹窗出现时整个 TUI 卡死(高速闪烁、键鼠无响应、无法滚动),Terminal.app 正常
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
环境:kimi-code 0.27.0(darwin/arm64);iTerm2 3.6.11(出问题);macOS Terminal.app(对照,正常)
现象:iTerm2 中运行 kimi,工具审批弹窗出现时整个 TUI 高速闪烁/跳动并完全卡死:键盘(方向键+回车)无响应、终端无法滚动,只能中断会话。同一账号同一配置在 Terminal.app 下同类审批全程正常。
已排除:OSC 9;4 通知机制(#603)——iTerm2 3.6.11 执行 printf '\033]9;4;3\a' 无通知弹出,仅显示原生进度条。
线索:卡死时段(2026-07-19 02:12–02:21 UTC+8)会话日志中 ManagedKimiCodeModelsAuthError(models endpoint 拒绝 OAuth credentials,membership 校验失败)密集重复出现,疑似错误提示驱动的重绘风暴阻塞 UI 事件循环;切换 Terminal 后该报错亦消失。日志另含 resume 时的 closed interrupted tool calls at end of resume。
复现:iTerm2 启动 kimi → 触发需审批的工具调用 → 弹窗出现即卡死(当时伴随密集 OAuth 报错,可能是必要条件)。
期望:审批弹窗在 iTerm2 下稳定可交互;错误提示应有节流,不应阻塞 UI 事件循环。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the approval popup freeze in iTerm2 3.6.11 and compare it with Terminal.app. Start by examining the session logs around the repeated ManagedKimiCodeModelsAuthError entries and the approval UI's event loop behavior. Done means the approval popup remains interactive and repeated error messages no longer block or trigger uncontrolled redraws.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100