You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#305 should help with the root cause behind this: @ completion relies on fd for cross-directory search, and when fd is missing and you're outside a git repository there's no backend, so it failed silently.
#305 makes the dependency explicit — it warns at startup in exactly that case (fd missing + not a git repo) and documents fd as a dependency, while inside a git repo the existing git ls-files fallback keeps @ working. It doesn't auto-install fd, so the fix is still to install fd (or work inside a git repo) — the change just makes the cause visible instead of silent. Builds on the warning idea from #290.
Activity
caigee-cmd commentedon Jun 1, 2026
跟踪了一下
@唤起文件选择的逻辑,分享下初步发现。@的触发判断主要在底层依赖@earendil-works/pi-tui里,kimi-code 这边的file-mention-provider.ts主要负责菜单弹出后的排序。pi-tui 里判断是否触发用的是char === "@"(半角)。结合你提到的「切换中英文」,我怀疑原因是:中文输入法在全角标点模式下输入的是全角
@(U+FF20),而不是半角@(U+0040),所以匹配不上、菜单不弹出。另外也可能与输入法上屏的方式有关,这点还需要确认。想请你补充几点信息来确认:
@作为一行开头输入时,菜单能正常弹出吗?@还是全角@?fd?这些信息能帮助进一步定位。
Aalivexy commentedon Jun 1, 2026
检查当前目录是否是 git 仓库内,我之前测下来是只有 git 仓库内可以正常使用此功能
zha-ji-tui commentedon Jun 1, 2026
我刚刚测了下确实是,git仓库内才生效
fix(tui): add readdir fallback for @-mention in non-git directories (M…
fix(tui): tighten readdir fallback behavior for @-mention (MoonshotAI…
yhtyanght commentedon Jun 1, 2026
没有git初始化,但是不一定只有编码才能用吧。我git init后可以用了。
Eric-Song-Nop commentedon Jun 1, 2026
似乎真正的需求是系统里有安装
fdfancyboi999 commentedon Jun 2, 2026
#305 should help with the root cause behind this:
@completion relies onfdfor cross-directory search, and whenfdis missing and you're outside a git repository there's no backend, so it failed silently.#305 makes the dependency explicit — it warns at startup in exactly that case (fd missing + not a git repo) and documents
fdas a dependency, while inside a git repo the existinggit ls-filesfallback keeps@working. It doesn't auto-installfd, so the fix is still to installfd(or work inside a git repo) — the change just makes the cause visible instead of silent. Builds on the warning idea from #290.chengkeen commentedon Jun 2, 2026
@文件选择需要fd或者 git 仓库作为后端数据源,当两者都没有时菜单不会弹出。建议安装
fd(apt install fd-find/brew install fd),安装后detectFdPath()会自动识别,在任意目录下@文件选择都能正常工作。或者如果不想装
fd,在当前目录git init也可以让@生效(走git ls-files后备)。liruifengv commentedon Jun 8, 2026
在 #547 修复了,等发新版再试一下