From 0372ed6b97748b4d7517489792409b4fc2a27f8c Mon Sep 17 00:00:00 2001 From: akatz-ai Date: Mon, 8 Dec 2025 21:33:49 -0800 Subject: [PATCH 1/2] fix: Detect first push to empty remote and show correct commit count When pushing to a newly created empty GitHub repo, the push preview incorrectly showed "0 commits" because origin/branch doesn't exist yet. Changes: - Add is_first_push flag to push-preview API response - Update PushModal to show "Creating origin/branch with X commits" - Add info box explaining first push scenario The core library fix (get_sync_status detecting missing remote branch) is in the comfygit-core package. Context: ctx://46f65107e266912e/c582c011-b93d-451a-94b2-8bb32f70fc1b --- .../components/base/molecules/PushModal.vue | 29 +- frontend/src/services/mockApi.ts | 3 +- frontend/src/types/comfygit.ts | 1 + js/comfygit-panel.css | 2 +- js/comfygit-panel.js | 6585 +++++++++-------- server/api/v2/remotes.py | 8 +- 6 files changed, 3334 insertions(+), 3294 deletions(-) diff --git a/frontend/src/components/base/molecules/PushModal.vue b/frontend/src/components/base/molecules/PushModal.vue index 4e06100..d5277fa 100644 --- a/frontend/src/components/base/molecules/PushModal.vue +++ b/frontend/src/components/base/molecules/PushModal.vue @@ -62,7 +62,18 @@