From 4877c11aa28145bea408ab9a454a7d034d75ac25 Mon Sep 17 00:00:00 2001 From: mika kuns Date: Fri, 29 May 2026 15:36:12 +0200 Subject: [PATCH] fix(ui): narrow RepoScanner catch to filesystem exceptions Co-Authored-By: Claude Opus 4.7 --- src/ClaudeDo.Ui/Services/RepoScanner.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ClaudeDo.Ui/Services/RepoScanner.cs b/src/ClaudeDo.Ui/Services/RepoScanner.cs index bf3a723..8ac8785 100644 --- a/src/ClaudeDo.Ui/Services/RepoScanner.cs +++ b/src/ClaudeDo.Ui/Services/RepoScanner.cs @@ -12,7 +12,8 @@ public static class RepoScanner var result = new List(); IEnumerable subdirs; try { subdirs = Directory.EnumerateDirectories(parentFolder); } - catch { return Array.Empty(); } + catch (Exception e) when (e is IOException or UnauthorizedAccessException) + { return Array.Empty(); } foreach (var dir in subdirs) {