[BUG] Grouped routes in Next.js using parentheses are not autocompleted

Status Fixed / completed
Maintainer reply ✓ Yes — dicksontsai
Activity 3 comments · opened Jun 8, 2025 · closed Sep 19, 2025
💡 Likely answer: A maintainer (dicksontsai, collaborator) responded on this thread — see the highlighted reply below.

Environment

  • Platform (select one):
  • [x] Anthropic API
  • Claude CLI version: 1.0.17
  • Operating System: Linux
  • Terminal: Cursor Terminal

Bug Description

Grouped routes using parentheses in Next.js (e.g., (dashboard), (authenticated), (public)) are not autocompleted or discoverable via file search unless page.tsx is explicitly typed. This negatively affects developer productivity and discoverability of deeply nested routes.

Steps to Reproduce

  1. Set up a Next.js app using the App Router with grouped routes like (dashboard)/settings/page.tsx.
  2. Open your IDE or file search tool (e.g., VSCode).
  3. Attempt to search for "settings" or "dashboard" or "page" (without full page.tsx).
  4. Observe that no autocomplete or file match is shown unless page.tsx is typed.

Expected Behavior

Grouped route directories and files inside them should be indexed and autocompleted in file search, even if the folder name is wrapped in parentheses.

Actual Behavior

Grouped routes are hidden from autocomplete unless page.tsx is explicitly typed, making navigation and discovery harder.

Additional Context

This behavior is specific to the Next.js App Router with grouped routes and affects developer workflows, especially in large codebases with deep route structures. Screenshots can be provided if necessary.

View original on GitHub ↗

3 Comments

dicksontsai collaborator · 1 year ago

This issue should be fixed now.

tadeumaia · 1 year ago

This is not fixed for me as of v1.0.119.

[EDIT] Same problem still on 1.0.120

Claude
<img width="736" height="288" alt="Image" src="https://github.com/user-attachments/assets/04706feb-5eb4-48cf-b9b3-7ded1ff238ea" />

Codex

<img width="1608" height="398" alt="Image" src="https://github.com/user-attachments/assets/96dc40a4-cc59-4355-bd13-81e8dc57d373" />

Gemini

<img width="1694" height="610" alt="Image" src="https://github.com/user-attachments/assets/5a03d17e-9361-4cd2-9847-865a9fb2012b" />

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.