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 摘要。