Skip to content

fix: Push preview and RunPod deploy improvements#8

Merged
akatz-ai merged 3 commits intomainfrom
dev
Dec 9, 2025
Merged

fix: Push preview and RunPod deploy improvements#8
akatz-ai merged 3 commits intomainfrom
dev

Conversation

@akatz-ai
Copy link
Copy Markdown
Member

@akatz-ai akatz-ai commented Dec 9, 2025

Summary

  • Fix push preview showing "0 commits" when pushing to empty remote
  • Disable unsupported RunPod deployment options (Community/Spot)

Changes

Fix: First push to empty remote detection

When pushing to a newly created empty GitHub repository, the push preview incorrectly showed "0 commits to push" because origin/branch doesn't exist yet and the git comparison fails.

Changes:

  • Add is_first_push flag to push-preview API response (derived from new remote_branch_exists flag in core library)
  • Update PushModal to show "Creating origin/branch with X commits" for first push
  • Add info box explaining this will create the remote branch

Note: The core library fix (get_sync_status detecting missing remote branch and counting local commits) is in the comfygit-core package.

Fix: Disable unsupported RunPod options

RunPod doesn't currently support Community cloud type or Spot pricing through our integration.

Changes:

  • Disable Community and Spot radio inputs (grayed out at 50% opacity)
  • Options remain visible so users know they exist for future support

Test plan

  • Create new empty GitHub repo, add as remote, make commit, verify push preview shows correct commit count
  • Verify push actually creates the remote branch
  • Verify Community and Spot options are visually disabled in RunPod deploy tab

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
RunPod doesn't currently support Community cloud type or Spot pricing
through our integration. Disable these options in the UI while keeping
them visible so users know they exist for future support.

Changes:
- Add disabled attribute to Community and Spot radio inputs
- Add .radio-option.disabled CSS class with 50% opacity and not-allowed cursor
- Options remain visible but unselectable

Context: ctx://46f65107e266912e/c582c011-b93d-451a-94b2-8bb32f70fc1b
@akatz-ai akatz-ai merged commit af3a405 into main Dec 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant