warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.07k stars 360 forks source link

Prompt preview differs from actual rendered prompt #5020

Open madonuko opened 3 months ago

madonuko commented 3 months ago

Dupe Check

Describe the bug

image

To reproduce

  1. It happens with both dark and light themes, choose whatever theme you want
  2. Grab the Gruvbox Theme from Starship
  3. Enjoy the bugged preview

Expected behavior

No response

Screenshots

No response

Operating system

Linux

Operating system and version

Ultramarine Linux (Fedora) 40.1

Shell Version

zsh 5.9 (x86_64-redhat-linux-gnu)

Current Warp version

v0.2024.06.04.08.02.stable_04

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

dannyneira commented 3 months ago

Hi @madonuko thanks for letting us know. I recommend you use a nerd-font (I'm using MesloGS NF on my example) and then run the following to bust the font cache fc-cache -f -v, then restart Warp and see if the issue persists.

CleanShot 2024-06-13 at 12 17 32@2x

I hope this helps, please let us know if the issue persists and share your ~/.config/starship.toml config along with the font you are using so we can try and reproduce the issue.

madonuko commented 3 months ago

This is only reproducible by running Setup Guide (accessible via the Command Palette). My Starship config is exactly the same as the Gruvbox preset. Issue persists after busting the font cache and rebooting.

madonuko commented 3 months ago

For reference, my go-to font is CaskaydiaCove Nerd Font Mono; my font configuration is

<fontconfig>
 <alias>
  <family>monospace</family>
  <prefer>
    <family>CaskaydiaCove Nerd Font Mono</family>
    <family>MesloLGS NF</family>
    <family>Blobmoji</family>
    <family>Noto Emoji</family>
    <family>Noto Sans Mono CJK HK</family>
    <family>Noto Sans Mono CJK JP</family>
    <family>IPAGothic</family>
    <family>HanaMinA</family>
   </prefer>
 </alias>
</fontconfig>