Agents view: @ project picker is prefix-only, so interior substring matches never surface

Status Open
Reported on v2.1.215
Maintainer reply None cached
Activity 0 comments · opened Jul 20, 2026

Summary

The @ project picker in the claude agents view matches only the start of a project name. A query that occurs later in the name gives no results. For example, @ja matches java-eth. It does not match eth-java.

Motivation

The picker does a prefix comparison on the project name. The in-session @ autocomplete for files and folders does a fuzzy match. The two pickers do not behave the same way.

Many repos in one parent directory share a first segment. Examples are eth-, nf-, and internal-. The part of the name that identifies the repo is thus not the first segment. The user must type the shared prefix before the list becomes shorter. This makes the picker of little use.

Issue #61407 is the same request. A bot closed it on 2026-06-21 because it was inactive. The behavior is still present in version 2.1.215.

Proposal

Use the fuzzy matcher from the in-session @ autocomplete in the agents view picker.

  • Make @ja match eth-java and java-eth.
  • Sort exact matches and prefix matches above interior matches. This keeps the current results at the top of the list.
  • Apply the change to the @<subagent> completions. The two completions use the same picker.

Environment

  • Claude Code 2.1.215
  • macOS 26.5.2

View original on GitHub ↗