From d76c19b9d689bc088bdfddbfe8681c92e991f2d3 Mon Sep 17 00:00:00 2001 From: Kiet Ho Date: Sun, 18 Jan 2026 10:54:00 -0800 Subject: [PATCH] fix(desktop): show individual files in untracked directories git status without -uall shows untracked directories as single entries (e.g., ".source/") instead of individual files. When the UI tries to read content for a directory path, it fails silently. Adding -uall shows all individual untracked files, allowing the changes sidebar to display and read each file correctly. --- apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts b/apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts index 6d7a218a157..40570bf7eed 100644 --- a/apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts +++ b/apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts @@ -64,6 +64,7 @@ export async function getStatusNoLock(repoPath: string): Promise { // Use porcelain=v1 for machine-parseable output, -b for branch info // Use -z for NUL-terminated output (handles filenames with special chars) // Use -M for rename detection (otherwise renames show as delete + add) + // Use -uall to show individual files in untracked directories (not just the directory) const { stdout } = await execFileAsync( "git", [ @@ -75,6 +76,7 @@ export async function getStatusNoLock(repoPath: string): Promise { "-b", "-z", "-M", + "-uall", ], { env, timeout: 30_000 }, );