CommandCodeAI / CommandCodeAI/command-code

@ file search is almost unusable in huge code base

未关闭
#750 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
没有语言数据
星标
4k
派生
350
PR 合并指标
30 天内没有已合并 PR

描述

Summary

Use "@" to start a file search, it will almost always freeze in large code base. This issue lasts for a long time since I start to use cmdc.

I tested this in two repos, one of it has 42906 files and one of it has 109765 files, the "@" search works but delay like 3-5 seconds on the 42906 one, and will get stuck on the 109765 one.

It seems the solution to file search is not properly implemented in this tool. Switch to codex or claude-code, both of them works seamlessly with "@" file search. Also I believe the current implementation does not ignore some common dependency paths or cache folders.

Expected Behavior

File search works and should be fast

Actual Behavior

File search gets really slow with large code base, and will stuck with huge code base.

Steps to reproduce the issue

Try check out a big mono repo, and install the dependencies fully, then run the file search worfflow.

Command Code Version

1.32.1

Operating System

Linux

Terminal/IDE

No response

Shell

zsh

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

No response

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

issue 中未指定文件或测试。在已安装依赖项的情况下,使用 zsh 在 Linux 上的包含 42,906 个和 109,765 个文件的存储库中重现 @ file-search 工作流,然后跟踪现有的搜索入口点。如果搜索在没有报告的数秒延迟或冻结的情况下保持响应,则视为完成。

由索引模型根据 Issue 内容生成。

评估

领域
cli, performance, search
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。