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

Bug Fix: Crash, abnormal update while switching conversation Ids #1238

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

ManishMadan2882
Copy link
Collaborator

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

    Basically conversationId is updated in two situations:
    1. switching the conversation
    2. streaming when data.type = 'id'

    As per the current flow, there are following bugs:

  • While streaming, switching to New Chat, crashes the application

  • In case of New Chat, the conversations are not updating in the sidebar

    Fix:

  • Pause the update of streaming query without pausing the fetchAnswer middleware explicitly.
    * Set the status as idle for every update to conversationId
    * Append the streaming answer to the response only when the status is not idle.

  • Why was this change needed? (You can also link to an open issue here)
    - Fixes the root cause of the problem.

Copy link

vercel bot commented Oct 4, 2024

@ManishMadan2882 is attempting to deploy a commit to the Arc53 Team on Vercel.

A member of the Team first needs to authorize it.

@dartpain dartpain added help wanted Extra attention is needed javascript Pull requests that update Javascript code labels Oct 5, 2024
Copy link

vercel bot commented Oct 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-gpt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 5, 2024 10:06pm

Copy link
Contributor

@dartpain dartpain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
LGTM!

@dartpain dartpain merged commit afc86ef into arc53:main Oct 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend hacktoberfest help wanted Extra attention is needed javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants