Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When connection is lost, history gets deleted. #8294

Closed
urbels opened this issue Apr 24, 2023 · 5 comments
Closed

When connection is lost, history gets deleted. #8294

urbels opened this issue Apr 24, 2023 · 5 comments
Labels

Comments

@urbels
Copy link

urbels commented Apr 24, 2023

I have a weird issue with connection not related to tabby, but whats related to tabby is - history gets lost. Every time I lose connection and tabby shows "reconnecting" history gets deleted.

@urbels urbels added the T: Bug label Apr 24, 2023
@K-TheMartian
Copy link

This is not related to Tabby, this is the behavior in all ssh terminals due to the bash history mechanics.
When the connection is terminated (for any reason), the history is not saved,
the session must be closed properly, so all commands are dumped into the history file.
I hope maybe there could be a mechanism where all the commands are saved within tabby and if reconnected it populates back the bash history file.

@urbels
Copy link
Author

urbels commented Apr 25, 2023

This is not related to Tabby, this is the behavior in all ssh terminals due to the bash history mechanics. When the connection is terminated (for any reason), the history is not saved, the session must be closed properly, so all commands are dumped into the history file. I hope maybe there could be a mechanism where all the commands are saved within tabby and if reconnected it populates back the bash history file.

Looks like same thing is happening on simple close and disconnect. Before it saved session but not in latest version.
It shows history for like half second and then purges it.

@Mirulmaar
Copy link

Check in settings SSH > "Clear terminal after connection"

@urbels
Copy link
Author

urbels commented May 8, 2023

Check in settings SSH > "Clear terminal after connection"

Thank you! That fixed it for me. No idea when it was itroduced because before it was fine.

@urbels urbels closed this as completed May 8, 2023
@Spoilt
Copy link

Spoilt commented Jun 20, 2024

Sorry to dig up this thread, but the option doesn't seem to be there any more. Is it still available?

Edit: found #9036 which answers my question. In Profile > Advanced tab, you need to click on SSH to open a config page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants