diff --git a/src/main/ipc/filesystem-list-files.ts b/src/main/ipc/filesystem-list-files.ts index 50affe29690..4aad27a793e 100644 --- a/src/main/ipc/filesystem-list-files.ts +++ b/src/main/ipc/filesystem-list-files.ts @@ -39,27 +39,12 @@ export async function listQuickOpenFiles(rootPath: string, store: Store): Promis 'rg', [ '--files', - '--hidden', - '--glob', - '!.git', - '--glob', - '!.git/**', + // Why: --hidden + positive re-inclusion globs (e.g. '.github') made + // ripgrep treat them as a whitelist, filtering out every non-dotfile. + // Without --hidden, rg skips dot-dirs by default and respects + // .gitignore, so normal files like CLAUDE.md are returned correctly. '--glob', '!**/node_modules', - '--glob', - '!**/node_modules/**', - '--glob', - '!.*', - '--glob', - '!.*/*', - '--glob', - '!**/.*', - '--glob', - '!**/.*/**', - '--glob', - '.github', - '--glob', - '.github/**', authorizedRootPath ], {