Feat(web,server): respect Claude gitignore settings in @ picker and show partial results#1661
Feat(web,server): respect Claude gitignore settings in @ picker and show partial results#1661lnieuwenhuis wants to merge 4 commits intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Needs human review This PR introduces a new feature that reads Claude's gitignore settings and changes what files appear in the @ picker accordingly. Since this introduces new runtime behavior based on external config files and affects file visibility, human review is warranted. You can customize Macroscope's approvability policy. Learn more. |
What Changed
I updated the @ file picker so it now honors Claude’s effective respectGitignore setting instead of always filtering ignored files in git workspaces. I also surfaced a partial-results hint in the composer when workspace search is truncated, so users can tell when the picker is only showing a subset of matches.
Why
This fixes the @ picker behavior for workflows that intentionally keep local files ignored but still need to reference them in prompts. The partial-results hint makes large workspaces less confusing by explaining why a query may not show everything.
UI Changes
The composer file picker now shows a small hint when search results are truncated. When the search returns no visible matches but the backend indicates partial results, it tells the user to refine the query. When results are visible, it shows a compact “showing partial results” note below the list. Screenshots for the "no results", "partial results" and regular "full" results:



Checklist
Note
Medium Risk
Changes workspace indexing/search behavior to optionally include
.gitignored files based on user/project Claude settings, which can alter what paths are exposed and cached. Low complexity UI tweaks, but backend behavior change affects a core picker/search path.Overview
The
@file picker now respects Claude’s effectiverespectGitignoresetting instead of always filtering ignored files in git workspaces, by adding aclaudeSettingsresolver and keying the workspace index cache by{ cwd, respectGitignore }.Workspace search tests were extended to cover the new behavior (including cache/precedence and a gitignored-inclusion scenario), and the composer command menu UI now shows a partial results hint whenever the backend reports
truncatedsearch results (both for empty and non-empty lists).Written by Cursor Bugbot for commit eff049f. This will update automatically on new commits. Configure here.
Note
Respect Claude's
respectGitignoresetting in the @ file picker and show partial results hintrespectGitignoreboolean from Claude settings files (~/.claude.json,~/.claude/settings.json,.claude/settings.json,.claude/settings.local.json), defaulting totrue.WorkspaceEntriessearch and indexing in WorkspaceEntries.ts to skip gitignore filtering whenrespectGitignoreisfalse, falling back to a full filesystem scan.partialResultsHintprop toComposerCommandMenuthat surfaces a message in the @ picker when file search results are truncated.respectGitignore: falsein Claude config will now surface previously ignored files (e.g..agent/, build artifacts) in the @ file picker.Macroscope summarized eff049f.