Skip to content

[Bug]: Messages lost when session expired whilst sending a message #6491

@michnovka

Description

@michnovka

What happened?

I opened an issue and it was dismissed into discussion, but it IS A BUG. What danny commented when dismissing it into discussion is not related to the issue. Therefore I am reopening and request it not be closed unless you all agree this wont be fixed and the bug is there to stay with us. But please do not just close it with giving a "solution" which is not for the issue.

** Unrelated to Save drafts locally option in settings **

Today it happened to me, that likely my session expired as I was typing my query. I hit send button, and to my frustration, I get redirected to login page and my whole message is lost.

I would suggest that if this happens, you either

  1. save message in localstorage and restore it after login
  2. do not log user out, simply show a modal that they are logged out, so they can copy the message before relogin

Simply losing the message with no way to recover is inconvenient

Version Information

ghcr.io/danny-avila/librechat-dev latest e4979ae60fba 5 days ago 866MB

Steps to Reproduce

  1. log in to librechat
  2. go to browser settings and clear cookies
  3. type in message and hit send

Expected:

after logging in I expect to see the original message I sent

Actual behavior:

The message is lost forever

What browsers are you seeing the problem on?

No response

Relevant log output

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions