From 340e76c3ed1f912ff38408b62aa6ad0c152c4b37 Mon Sep 17 00:00:00 2001 From: Cody Seibert Date: Thu, 18 Dec 2025 19:55:43 -0500 Subject: [PATCH] fix: handle null branch names in AutoModeService - Updated branchName assignment to use nullish coalescing, ensuring that unassigned features are correctly set to null instead of an empty string. This change improves the handling of feature states during the update process. --- apps/server/src/services/auto-mode-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/services/auto-mode-service.ts b/apps/server/src/services/auto-mode-service.ts index ab6d99f8..a000d9db 100644 --- a/apps/server/src/services/auto-mode-service.ts +++ b/apps/server/src/services/auto-mode-service.ts @@ -551,7 +551,7 @@ export class AutoModeService { // Update running feature with actual worktree info tempRunningFeature.worktreePath = worktreePath; - tempRunningFeature.branchName = branchName; + tempRunningFeature.branchName = branchName ?? null; // Update feature status to in_progress await this.updateFeatureStatus(projectPath, featureId, "in_progress");