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.
This commit is contained in:
Cursor Agent committed 2026-05-02 20:15:07 +00:00
1 parent 2df8ce297c
commit 408123a544
1 file changed
+2 -1
+2 -1
View File
@@ -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,