Warp is cleaning (clear command) its prompt even when it has a ssh connection opened

Open
#2,034 4 comments 1 reaction 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
bash, macos

Research direction

No files or tests are named in the issue. Reproduce the behavior by opening an SSH session and running clear, then trace how Warp routes that command between the local console and remote shell. Done means clear executes in the remote prompt without moving the SSH prompt to the top of the local screen.

Written by the indexing model from the issue text.

Description

area:shell-terminal area:ssh bug ready-to-implement triaged
Discord username (optional)

No response

Describe the bug

I have been using the warp for the last 8 months and this unexpected behavior started to happen one month ago.

When I open a ssh connection and try to use clear command in the remote connection, warp seems to get that as a local command then it moves up the current prompt (with the remote connection still opened) to the top of the screen.

To Reproduce
  1. Open the warp.
  2. Connect to a remote instance using ssh command.
  3. Type clear and press enter.
  4. Now, you're able to see that clear command puts the ssh prompt at the top of your screen and you are no longer able to centralize it on your warp console.
Expected behaviour

When warp has a ssh connection opened the clear command should run in the remote prompt instead of at the local warp console.

Screenshots
  1. Open the warp.
step 1
  1. Connect to a remote instance using ssh command.
step 2
  1. Type clear and press enter.
  2. Now, you're able to see that clear command puts the ssh prompt at the top of your screen and you are no longer able to centralize it on your warp console.
step 3 and 4
Operating System

MacOS

OS Version

Monterey 12.6

Shell Version

bash 3.2.57

Warp Version

v0.2022.10.25.08.06.stable_03

Additional context

No response

Does this block you from using Warp daily?

No

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

No response

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.