From 408123a5441c9370a58658bcde63ce89f823d2f4 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 2 May 2026 20:15:07 +0000 Subject: [PATCH] fix: treat unknown VCS kind as supporting git workflow actions The remoteUpdated fallback in applyGitStatusStreamEvent creates a transient status with kind: 'unknown' when no local status snapshot has arrived yet. resolveVcsActionPresentation was only returning supportsGitWorkflowActions: true for 'git', null, or undefined, causing the UI to incorrectly disable git commit/push/PR controls during this transient state. Include 'unknown' in the supported set so the controls remain enabled until a definitive non-git kind is determined. --- apps/web/src/vcsPresentation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/vcsPresentation.ts b/apps/web/src/vcsPresentation.ts index e9d5b7d2b7..fbad6f52d7 100644 --- a/apps/web/src/vcsPresentation.ts +++ b/apps/web/src/vcsPresentation.ts @@ -58,7 +58,8 @@ export function resolveVcsActionPresentation( kind: VcsDriverKind | null | undefined, ): VcsActionPresentation { const terms = resolveVcsTerms(kind); - const supportsGitWorkflowActions = kind === undefined || kind === null || kind === "git"; + const supportsGitWorkflowActions = + kind === undefined || kind === null || kind === "git" || kind === "unknown"; return { supportsGitWorkflowActions,