[BUG] Special characters in context finder search

Resolved 💬 3 comments Opened Aug 27, 2025 by nckre Closed Jan 4, 2026

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: <!-- output of claude --version -->
  • Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
  • Terminal: <!-- e.g. iTerm2, Terminal App -->

Bug Description

When using the @ for adding specific files as context, claude-code stops matching when there are special characters in the path like [ or (.

For example, it will return results for @app/api/product/ but will show 0 results for @app/api/product/[id].

Steps to Reproduce

  1. Write a path in @ context picker that includes [

Expected Behavior

  1. Continue showing results that match the special characters

Additional Context

!Image

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗