Skip to content

Git: Create Pull Request dialog disappears on focus loss #42217

@jacobdalamb

Description

@jacobdalamb

Image

Problem

The "Create Pull Request" dialog is a modal that closes immediately when focus is lost (e.g., clicking outside Zed, Alt+Tab to another app, or switching windows). This causes:

  • No way to recover or reopen the dialog

Expected Behavior

The dialog should either:

  • Remain open when focus is lost, OR
  • Add an Create Pull Request action via Command Palette/Git Panel

Actual Behavior

  • Dialog dismisses instantly on focus loss
  • No command palette action exists to recreate it
  • Git Panel loses the "Create PR" button after dismissal

Proposed Solution

Add persistent, accessible actions for PR creation:

  1. Command Palette: Add "Git: Create Pull Request" command (always available for current branch)
  2. Git Panel: Add permanent "Create Pull Request" button (not just a temporary notification)
  3. Dialog Behavior: Make it non-modal or prevent focus-loss dismissal

Zed Version and System Specs

Zed: v0.211.6 (Zed)
OS: macOS 26.1
Memory: 16 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Let's Git Together

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions