CommandCodeAI / CommandCodeAI/command-code

Tool Call Repair: Invalid input for tool "grep" - The tool call failed because the patterns are missing.

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

还没有人认领这个 Issue。

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

描述

Summary

Seeing a few tool call fails with DeepSeek v4 Pro:


✻ Thought for 1 second
  The user wants the search to also find scheduling requests for people who are associated with a company (i.e., people who work at a company),
  not just direct company/people matches. So if I search for a company name, I should also find scheduling requests where that company's people
  are listed as participants.

  Let me look at the relationship between people and companies - there's probably a `people`.`current_company` field or a `relationships` table
  that links people to companies.

⠶ Let me check how people are associated with companies.

 SEARCH  ["undefined" in files]
 │ Invalid input for tool "grep". Please correct and retry:
 └   • pattern: Invalid input: expected string, received undefined

 SEARCH  ["undefined" in files]
 │ Invalid input for tool "grep". Please correct and retry:
 └   • pattern: Invalid input: expected string, received undefined

✻ Thought for 1 second
  The tool call failed because the patterns are missing. Let me check the schema and how people relate to companies.
Expected Behavior

Not to fail.

Actual Behavior

See above

Steps to reproduce the issue

Not sure.

Command Code Version

0.40.8

Operating System

macOS

Terminal/IDE

ghostty

Shell

zsh

Additional context

No response

贡献指南

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

从这里开始

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

调研方向

未指定源文件、测试或入口点。首先在 macOS 上使用 0.40.8 版本重现 DeepSeek v4 Pro transcript,然后跟踪 pattern 未定义时的 grep 工具调用路径。当 agent 不发出无效的 grep 调用,并且能够在不失败的情况下处理缺失的 pattern 时,即视为完成。

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

评估

技术栈
shell
领域
ai, cli
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

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