summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/atCommandProcessor.ts
diff options
context:
space:
mode:
authorzfflxx <[email protected]>2025-07-07 13:48:39 +0800
committerGitHub <[email protected]>2025-07-07 05:48:39 +0000
commit97d9386e3feba8748ec555707b2f6b75bc3b15a8 (patch)
treeaa685660be2f289d8e253a107498f49b01cc7cf1 /packages/cli/src/ui/hooks/atCommandProcessor.ts
parentbb8f6b376d83a9b70406279c87ab8b163fb32a38 (diff)
@file don't respect config respectGitIgnore=false (#3382) (#3387)
Co-authored-by: Ryan Fang <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/hooks/atCommandProcessor.ts')
-rw-r--r--packages/cli/src/ui/hooks/atCommandProcessor.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/packages/cli/src/ui/hooks/atCommandProcessor.ts b/packages/cli/src/ui/hooks/atCommandProcessor.ts
index 80393ef2..7fe68f10 100644
--- a/packages/cli/src/ui/hooks/atCommandProcessor.ts
+++ b/packages/cli/src/ui/hooks/atCommandProcessor.ts
@@ -181,12 +181,10 @@ export async function handleAtCommand({
return { processedQuery: null, shouldProceed: false };
}
- // Check if path should be ignored by git
- if (fileDiscovery.shouldGitIgnoreFile(pathName)) {
- const reason = respectGitIgnore
- ? 'git-ignored and will be skipped'
- : 'ignored by custom patterns';
- onDebugMessage(`Path ${pathName} is ${reason}.`);
+ // Check if path should be ignored based on filtering options
+ if (fileDiscovery.shouldIgnoreFile(pathName, { respectGitIgnore })) {
+ const reason = respectGitIgnore ? 'git-ignored' : 'custom-ignored';
+ onDebugMessage(`Path ${pathName} is ${reason} and will be skipped.`);
ignoredPaths.push(pathName);
continue;
}
@@ -349,7 +347,7 @@ export async function handleAtCommand({
const toolArgs = {
paths: pathSpecsToRead,
- respectGitIgnore, // Use configuration setting
+ respect_git_ignore: respectGitIgnore, // Use configuration setting
};
let toolCallDisplay: IndividualToolCallDisplay;