-
Notifications
You must be signed in to change notification settings - Fork 1.3k
🐛 Agent passes unrecognized file type 'tsx' to ripgrep #1589
Copy link
Copy link
Open
Labels
area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agents
Description
Bug Report
Description
The agent passes --type tsx to ripgrep, but tsx is not a recognized ripgrep file type. Ripgrep's built-in ts type already covers both .ts and .tsx files.
Error
rg: unrecognized file type: tsx
Expected Behavior
When searching TypeScript/TSX files, the agent should use --type ts (which matches .ts and .tsx) or use --glob '*.tsx' instead of --type tsx.
Suggested Fix
Map tsx to either:
--type ts(ripgrep built-in, covers.tsand.tsx)--glob '*.tsx'if only.tsxfiles are desired
You can verify with:
rg --type-list | grep ts
# Output: ts: *.ts, *.tsxEnvironment
- OS: macOS (Darwin/ARM64)
- Copilot CLI version: 0.0.414
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agents
Type
Fields
Give feedbackNo fields configured for issues without a type.