"No files matched the pattern." result in Search tool is rendered as "1 match"
Open
Beginner friendly
Nobody has claimed this yet.
triage
- Dominant language
- No language data
- Stars
- 2.1k
- Forks
- 157
- PR merge metrics
- No merged PRs in 30d
Description
Short summary
"No files matched the pattern." result in Search tool is rendered as "1 match"
Affected version or release
v1.1.14
Installation context
No response
What happened?
No response
Steps to reproduce
- ask to search for a file that does not exist
- search will be called, nothing found
- collapsed tool render shows 1 match
- uncollapsed tool shows no matches
Expected behavior
collapsed tool shows no matches
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Search tool behavior with a file pattern that matches nothing, then compare the collapsed and uncollapsed renderings. Trace how the collapsed result derives its match count; done means the collapsed view reports no matches when the tool output says no files matched.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 70/100