github / github/app

"No files matched the pattern." result in Search tool is rendered as "1 match"

Open Beginner friendly
#3,336 0 comments 0 reactions 0 assignees View on GitHub

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
  1. ask to search for a file that does not exist
  2. search will be called, nothing found
  3. collapsed tool render shows 1 match
  4. uncollapsed tool shows no matches
Expected behavior

collapsed tool shows no matches

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.