warpdotdev / warpdotdev/warp

Autocomplete not working properly over SSH.

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

Nobody has claimed this yet.

area:ssh bug ready-to-implement triaged
Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Discord username (optional)

kamafeu

Describe the bug

Hey,

After connecting to a remote server over ssh, everything is OK.
After disconnecting with CTRL-D, and connecting to a second remote server the autocomplete will use the dirs of the first remote server instead of the new one.
This persists over multiple connects and disconnects and only on the actual TAB. In a new tab, if I connect to the second remote server, it will work OK.

Not sure if it's relevant, but I'm using ssh multiplex.

PS: this is a follow up to #4574 as it appears to be a different issue. @danielpeng2 asked to open a new issue if needed.

To reproduce
  1. ssh to remote server
  2. ls
  3. cd somedir (with tab)
  4. ctrl-d
  5. ssh to other remote server
  6. ls (confirm that's a different server with a different listing)
  7. cd someotherdir (with tab)
Expected behavior

Instead of showing the previous dirs and files of the first remote server, it should show the dirs and files of the second remote server.

Screenshots

No response

Operating system

MacOS

Operating system and version

Sonoma 14.4.1 (23E224)

Shell Version

Local: zsh 5.9 Remote: bash 5.1.16(1)-release

Current Warp version

v0.2024.04.23.08.01.stable_03

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

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.

Research direction

Start by reproducing the SSH, CTRL-D, and second-connection sequence described in the issue, using the listed macOS, zsh, and bash versions. Trace how autocomplete retains directory state across connections and verify that TAB suggestions come from the current remote server rather than the first one.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.