Skip to content

Commit 408123a

Browse files
committed
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.
1 parent 2df8ce2 commit 408123a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/web/src/vcsPresentation.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ export function resolveVcsActionPresentation(
5858
kind: VcsDriverKind | null | undefined,
5959
): VcsActionPresentation {
6060
const terms = resolveVcsTerms(kind);
61-
const supportsGitWorkflowActions = kind === undefined || kind === null || kind === "git";
61+
const supportsGitWorkflowActions =
62+
kind === undefined || kind === null || kind === "git" || kind === "unknown";
6263

6364
return {
6465
supportsGitWorkflowActions,

0 commit comments

Comments
 (0)