Skip to content

Windows PowerShell: Warp prompt briefly shows git branch, then branch chip disappears #8938

@King-GD

Description

@King-GD

Pre-submit checklist

  • I have searched the existing issues and did not find an exact duplicate.
  • I can reproduce this on the current stable release.

Warp version

v0.2026.03.18.08.24.stable_01

OS

Windows 11

Shell

PowerShell 7 (pwsh)

What happened?

On Windows with PowerShell, Warp prompt briefly shows the Git branch when the terminal/session initializes, then the branch chip disappears and only the path/time remain.

This is not a Git repository detection problem:

  • git branch --show-current returns the correct branch.
  • Warp also records the correct git_branch value internally.
  • The branch can appear for a moment right after startup / session restore, then gets replaced by a prompt state without the visible branch.

In my case, the current repo is E:\workcode\fofa-frontend-v5 and the branch is feat/theme-light.

Steps to reproduce

  1. On Windows 11, use Warp with PowerShell 7.
  2. Go to Settings > Appearance.
  3. Set Input type to Warp.
  4. Open a Git repository.
  5. Observe the prompt after startup / session restore.

Expected behavior

The Warp prompt should continue showing the current Git branch chip while inside a Git repository.

Actual behavior

The Git branch may appear briefly during initialization, but then disappears. After that, only other chips like working directory and time remain visible.

Additional details / evidence

  • git branch --show-current returns the correct branch: feat/theme-light
  • Warp docs say Warp prompt should support Git branch chips.
  • I also noticed inconsistent local state where the UI can show Warp mode selected while persisted terminal pane state appears to flip back to Shell.
  • Internally, Warp stores correct git_branch values for command blocks, but the newest prompt snapshot ends up without a rendered branch chip.

Logs / internal observations

From local investigation:

  • warp.exe version: v0.2026.03.18.08.24.stable_01
  • Example repo: E:\workcode\fofa-frontend-v5
  • Example branch: feat/theme-light
  • Warp local logs path: C:\Users\18339\AppData\Local\warp\Warp\data\logs\warp.log
  • Warp local DB path: C:\Users\18339\AppData\Local\warp\Warp\data\warp.sqlite

If helpful, I can attach screenshots showing:

  1. branch briefly visible during initialization
  2. branch disappearing afterward, leaving only path/time chips

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions