From 0c26396f79b94f8212d3c62d0514dc4188866ee7 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Sun, 15 Feb 2026 00:02:35 -0800 Subject: [PATCH] Omit empty push target and track branch in action deps - Only include `pushTarget` in analytics payload when it exists - Add `gitStatus.branch` to callback dependencies to keep telemetry current --- apps/web/src/components/GitActionsControl.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx index 001559c7c1cd6c4ca4d427e95c56cf6c37f372a2..ec945a595de32452a36c05e498f3b202e4782558 100644 --- a/apps/web/src/components/GitActionsControl.tsx +++ b/apps/web/src/components/GitActionsControl.tsx @@ -232,7 +232,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp hasCustomCommitMessage: !!commitMessage?.trim(), hasWorkingTreeChanges: !!gitStatus?.hasWorkingTreeChanges, forcePushOnly: forcePushOnlyProgress, - pushTarget, + ...(pushTarget ? { pushTarget } : {}), }); const progressToastId = toastManager.add({ type: "loading", @@ -325,6 +325,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp }, [ api, + gitStatus?.branch, gitStatus?.hasWorkingTreeChanges, gitStatus?.openPr?.url, isDefaultBranch, -- 2.54.0