From 43c19c70cae9940f845c5c9e8a0f00f4840066e7 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Tue, 17 Feb 2026 22:38:55 -0800 Subject: [PATCH] Update apps/server/src/routes/worktree/routes/discard-changes.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- apps/server/src/routes/worktree/routes/discard-changes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/routes/worktree/routes/discard-changes.ts b/apps/server/src/routes/worktree/routes/discard-changes.ts index a0933149..7bf1a4ec 100644 --- a/apps/server/src/routes/worktree/routes/discard-changes.ts +++ b/apps/server/src/routes/worktree/routes/discard-changes.ts @@ -128,7 +128,7 @@ export function createDiscardChangesHandler() { stagedFiles.push(file.path); } // Check for working tree changes (worktree status Y): handles MM, AM, MD, etc. - if (workTreeStatus === 'M' || workTreeStatus === 'D' || workTreeStatus === 'A') { + if (workTreeStatus !== ' ' && workTreeStatus !== '?') { trackedModified.push(file.path); } }