Skip to content

[Bug]: New chat has no label until page refresh and improper handling of back button #7700

Open
@michnovka

Description

@michnovka

What happened?

I was finally able to reproduce an ongoing issue I have randomly experienced for weeks. Sometimes I open up Librechat on my Android phone through shortcut and on top it says "New Chat". I start typing and after I hit send, it gets appended immediately to a previous chat, it does not create a new one.

Today I found one way to reproduce this:

  1. open new chat window
  2. send a message (get reply)
  3. hit back button -> you get on New chat page again
  4. type another message and send it -> you get sent to the previous chat, even though before sending message it looks like you are opening a new one.

I have made a video showing this:

signal-2025-06-03-093426.mp4

I also noticed, that when I send first message, the title on top says "New Chat" always. In sidebar however, it gives the title summary. The "New Chat" title is not updated until I refresh the page. This feels related, so I am keeping it in the same issue. I also experienced on few occasions (cant reproduce reliably) that I had a new chat page open (message history was empty, just like when you open new chat for agent), but the title was set to a title of previous message (so instead of "New Chat" it would say "Banana bread recipe"). Upon sending a message, again it would get appended to the banana bread recipe instead of starting a new chat.

Version Information

ghcr.io/danny-avila/librechat-dev latest 50c79cefc410 5 days ago 1.04GB

Steps to Reproduce

see above

What browsers are you seeing the problem on?

Mobile (Android)

Relevant log output

N/A

Screenshots

No response

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions