Skip to content

zsh-kimi-cli 插件和 zsh-autosuggestions 插件冲突 || zsh-kimi-cli plug-in conflicts with zsh-autosuggestions plug-in #189

Description

@lazyracket

What version of Kimi CLI is running?

0.50

Which open platform/subscription were you using?

zsh-kimi-cli

Which model were you using?

No response

What platform is your computer?

No response

What issue are you seeing?

你好,

我发现 zsh-kimi-cli 插件和 zsh-autosuggestions 插件(我是用 Homebrew 装的)一起启用时会冲突。

只要两个插件都在 .zshrc 里加载,启动终端或者 source ~/.zshrc 就会报错,看起来像是一个无限循环。

临时解决方案:
我把 zsh-kimi-cliplugins=(...) 列表里删除,只保留 zsh-autosuggestions,错误就消失了。

我的环境 (My Environment):

  • macOS (Apple Silicon)
  • Oh My Zsh

What steps can reproduce the bug?

这是一个 .zshrc 配置示例:

export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"

# 1. 启用 kimi-cli
plugins=(
  git
  kimi-cli
)
source $ZSH/oh-my-zsh.sh

# 2. 启用 zsh-autosuggestions
# (我是用 Homebrew 装的)
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh

终端:

$ source ~/.zshrc
_zsh_autosuggest_invoke_original_widget:14: maximum nested function level reached; increase FUNCNEST?

What is the expected behavior?

No response

Additional information

No response


What version of Kimi CLI is running?

0.50

Which open platform/subscription were you using?

zsh-kimi-cli

Which model were you using?

No response

What platform is your computer?

No response

What issue are you seeing?

hello,

I found that the zsh-kimi-cli plugin conflicts with the zsh-autosuggestions plugin (which I installed using Homebrew) when enabled together.

As long as both plug-ins are loaded in .zshrc, an error will be reported when starting the terminal or source ~/.zshrc, which looks like an infinite loop.

Temporary solution:
I removed zsh-kimi-cli from the plugins=(...) list and only kept zsh-autosuggestions and the error disappeared.

My Environment:

  • macOS (Apple Silicon)
    *Oh My Zsh

What steps can reproduce the bug?

Here is an example .zshrc configuration:

export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"

# 1. Enable kimi-cli
plugins=(
  git
  kimi-cli
)
source $ZSH/oh-my-zsh.sh

# 2. Enable zsh-autosuggestions
# (I installed it with Homebrew)
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh

Terminal:

$ source ~/.zshrc
_zsh_autosuggest_invoke_original_widget:14: maximum nested function level reached; increase FUNCNEST?

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions