Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Truncating bash history to 500 items

Open pocketpixels opened this issue 2 years ago • 6 comments

Discord username (optional)

No response

Describe the bug

Warp appears to truncate the bash history to 500 items? 
Truncating the user's history like this causes data loss that I consider very serious. 
My bash command history is a hugely valuable store of information to me. 
Luckily I have backups of my .bash_history from before I tried out Warp.

To Reproduce

Steps to reproduce:

  1. Configure bash to keep a large history (see Additional Context section below)
  2. Create a .bash_history file with (for example) 3000 lines
  3. Open Warp
  4. Run history

Expected behaviour

The history should still contain 3000 commands. 
Instead it has been truncated to the most recent 500.

Screenshots

No response

Operating System

MacOS

OS Version

No response

Additional context

I have configured bash's history via my .bashrc as follows: 
shopt -s histappend 
export HISTCONTROL=ignoredups:erasedups
export HISTSIZE=5000
export HISTFILESIZE=100000

Warp Internal (ignore): linear-label:24888f54-df93-45d5-9bdd-e38f740cac19

No response

pocketpixels avatar May 04 '22 04:05 pocketpixels

Truncating the user's history like this causes data loss that I consider very serious. My bash command history is a hugely valuable store of information to me. Luckily I have backups of my .bash_history from before I tried out Warp.

I lost my history as well, and I agree it's a pretty serious issue.

I had to uninstall Warp after that, because I no longer trust it with my data.

Ahnfelt avatar May 11 '22 09:05 Ahnfelt

I had to uninstall Warp after that, because I no longer trust it with my data.

Same here. I know it is beta software and thus expected some instability and incomplete features, but I didn't expect a terminal app to cause serious data loss.

pocketpixels avatar May 11 '22 18:05 pocketpixels

I just ran into this when I attempted to try warp. Luckily I had another session open in iTerm, where I restored my history and uninstalled Warp.

bdashrad avatar Jun 20 '22 18:06 bdashrad

I lost my history too, sad day, uninstalling it now.

bntzio avatar Aug 30 '22 19:08 bntzio

I can confirm that this bug also happened to me. This is rather serious and should be treated accordingly!

Tagging @warpdotdev-dx and @dannyneira

Soromeister avatar Sep 15 '22 20:09 Soromeister

Thanks for bringing this up all, so sorry that you're having this issue. We're aware and looking into a fix. Will post updates here once resolved.

dannyneira avatar Sep 15 '22 21:09 dannyneira

Still nothing ? I will also have to uninstall warp if this is not taken seriously. Terminal history is of outmost importance, and should not be altered with.

derlin avatar Oct 11 '22 08:10 derlin

Hey all - sorry again that this has been an issue for a while. We've identified a fix; I'll post an update here when it's live.

vorporeal avatar Nov 14 '22 18:11 vorporeal

This should be fixed now; please re-open this issue and let me know if you're still seeing your history truncated!

vorporeal avatar Dec 20 '22 18:12 vorporeal