find_files drops bracket-prefixed paths in narrowed searches
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
Research direction
Look for the find_files function or Step adapter that processes native find tool output. The bug is in a filter that strips lines starting with '[' or 'WARNING:'. Identify where this filtering happens, adjust the logic to distinguish between tool notices and valid file paths (like [id]/page.tsx), and add a test case for Next.js-style route directories.
Written by the indexing model from the issue text.
Description
What happened?
find_files can silently drop valid matches when the returned relative path starts with [ or WARNING:.
A common case is a narrowed search inside a Next.js routes directory. With routes/[id]/page.tsx present, find_files with path: "routes" returns (no matches), even though the native find backend returns [id]/page.tsx correctly. The same reproduces with [...slug] and [[...slug]].
The Step adapter currently strips every native output line starting with [ or WARNING:, so valid paths are treated as notices.
I reproduced this on clean main @ f113768 with the built-in tool profile and project-native Vitest, without external extensions.
Steps to reproduce
- Create
routes/[id]/page.tsx. - Run
find_fileswith:{ "pattern": "*.tsx", "path": "routes" } - The native find tool returns
[id]/page.tsx. - The Step-facing
find_filesresult is(no matches), withmatchedFiles: 0andreturnedFiles: 0.
Expected behavior
Valid file paths should not be removed because their relative path happens to start with text used by native notices.
Version
main @ f113768 / @step-harness/coding-agent 0.84.4
- Dominant language
- TypeScript
- Stars
- 54
- Forks
- 20
- Avg merge
- 4h 1m
- Merged PRs (30d)
- 12
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.
More from stepfun-ai/Step-Code
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stepfun-ai/Step-Code#190 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stepfun-ai/Step-Code#186 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stepfun-ai/Step-Code#184 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stepfun-ai/Step-Code#179 · 1 comment ·
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stepfun-ai/Step-Code#153 · 2 comments ·
All issues in stepfun-ai/Step-Code
Similar issues
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Crush Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ElementsProject/cln-application#167 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Quantco/pnpm-licenses#17 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100