Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(@angular/cli): ignore EBADF file system errors during MCP project…
… scan

File crawling concurrency occasionally surfaces temporary EBADF descriptors on specialized filesystems. This catches and ignores them, guaranteeing completion of background discovery loops.
  • Loading branch information
clydin committed Apr 14, 2026
commit ae5805adc0b181d64076020d2dc36143bd4c2d39
2 changes: 1 addition & 1 deletion packages/angular/cli/src/commands/mcp/tools/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ their types, and their locations.
});

const EXCLUDED_DIRS = new Set(['node_modules', 'dist', 'out', 'coverage']);
const IGNORED_FILE_SYSTEM_ERRORS = new Set(['EACCES', 'EPERM', 'ENOENT', 'EBUSY']);
const IGNORED_FILE_SYSTEM_ERRORS = new Set(['EACCES', 'EPERM', 'ENOENT', 'EBUSY', 'EBADF']);

function isIgnorableFileError(error: Error & { code?: string }): boolean {
return !!error.code && IGNORED_FILE_SYSTEM_ERRORS.has(error.code);
Expand Down
Loading