Skip to content

[upstream #16632] Drain a follow-up queued in a new chat's first turn after the user left and returned #233

Description

@berry-13

Upstream PR: LibreChat-AI#16632
Finding: LibreChat-AI#16632 (comment)

A follow-up queued during the first turn of a new chat stays keyed under NEW_CONVO. When the user leaves before that turn finishes and returns, the detached run is recorded under the resolved conversation id, but the reconstructed RunEnd has no startedAsNewConvo, so useQueueDrain neither migrates nor drains the NEW_CONVO queue. Behavior matches the pre-LibreChat-AI#16632 baseline (manual send), and LibreChat-AI#16632 lists new-conversation runs as a non-goal.

A fix would carry the run's new-conversation origin into DetachedRun and the reconstructed end. It needs care: after leaving to /c/new, the NEW_CONVO queue is the one the new-chat composer shows, so migrating it on return must not take items the user queued for a different new chat.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: clientreviewctl followups stateblocked: root openreviewctl followups statebugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions