Navigation without `cd` has broken suggestions.

Open
#4,585 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos, zsh
Domain
cli

Research direction

No source file or test is identified. First reproduce the issue in Warp's global terminal by navigating with a path such as ~/anything without cd, then compare it with the equivalent cd command; done means path navigation produces the same correct suggestions as the cd form.

Written by the indexing model from the issue text.

Description

area:completions bug ready-to-implement triaged
Discord username (optional)

itswilsonhou

Describe the bug

Navigating between folders without cd has broken autocomplete / suggestions.

E.g:

~/Documents/lowercase -> this will show either 'No suggestions' or incorrect suggestions

cd ~/Documents/lowercase -> this will show correct suggestions

To reproduce
  1. Open warp's global terminal (with the global hotkey).

  2. Try to navigate to any folder with ~/anything -> autocomplete / suggestions should be broken.

Expected behavior

I expect suggestions to come up instead of just saying 'No suggestions' or worse, incorrect suggestions.

Screenshots
image

Screenshot of 'No suggestions' when there should be suggestions.

Screenshot 2024-03-19 at 2 38 03 pm

Screenshot of nonsensical / wrong suggestions.

image

i don't even know what to say to this one^ 😅

Screenshot 2024-03-19 at 5 53 52 pm

Screenshot of correct suggestions when using cd explicitly

Operating system

MacOS

Operating system and version

Sonoma 14.0 (23A344)

Shell Version

zsh 5.9 (x86_64-apple-darwin23.0)

Current Warp version

v0.2024.03.12.08.02.stable_01

Regression

Yes, this bug started recently or with X Warp version.

Recent working Warp date

18/3/2024 ? (issue first experienced today: 19/3/2024), AEST timezone.

Additional context

Using oh-my-zsh if that helps. Very vanilla .zshrc file consisting of something like this:

if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
PATH="/usr/local/bin:$PATH:/opt/homebrew/bin"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

alias v=nvim

[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

# bun completions
[ -s "/Users/wilsonhou/.bun/_bun" ] && source "/Users/wilsonhou/.bun/_bun"

export BUN_INSTALL="/Users/wilsonhou/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"

export PATH="/usr/local/opt/python@3.11/bin:$PATH"

alias pn=pnpm
alias pni="pnpm install"
alias pna="pnpm add"
alias pnd="pnpm run dev"
alias pnx="pnpm dlx"
alias code="cursor"
alias gcm="git commit -m"

alias ci="code-insiders"
alias vim="nvim"

# pnpm
export PNPM_HOME="/Users/wilsonhou/Library/pnpm"
case ":$PATH:" in
  *":$PNPM_HOME:"*) ;;
  *) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end


Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

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

Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from warpdotdev/warp

All issues in warpdotdev/warp

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.