Skip to content

FIX: reload a sending conversation after another one has loaded - #3663

Open
Manohar Paturi (ManoharPaturi) wants to merge 1 commit into
microsoft:mainfrom
ManoharPaturi:fix/reload-sending-conversation
Open

Manohar Paturi (ManoharPaturi) wants to merge 1 commit into
microsoft:mainfrom
ManoharPaturi:fix/reload-sending-conversation

Conversation

@ManoharPaturi

Copy link
Copy Markdown
Contributor

Description

Fixes #3662

The conversation reload guard skipped any conversation with a send in flight, even after the user had navigated away and the hook had loaded a different conversation. Returning to the sending conversation through the URL then kept the other conversation's transcript on screen with no loading state, because the in-flight send also suppresses the load-gap flag, and nothing replaced the view until the send completed.

The skip now applies only while the hook still holds the sending conversation's own view. When another conversation is loaded, returning loads fresh server state, and the existing send pipeline keeps layering its pending messages and loading indicator on top of the fetched transcript, so the displayed view stays correct while the send runs. Mounting straight into a sending conversation still skips the fetch exactly as before.

Tests and Documentation

Added a regression that loads a second conversation and returns to the sending one, asserting the transcript is fetched and displayed. It fails on main and passes with the change. One existing test pinned the old skip for a sending conversation while another was loaded and now expects the fetch, with a comment explaining why the fetch is required. The full hooks suite passes (323 tests) and tsc is clean.

No documentation change needed, so I did not run JupyText.

The reload guard skipped any conversation with a send in flight, even when the hook held another conversation's transcript, so returning through the URL kept rendering the other conversation until the send landed. The skip now applies only while the hook still holds the sending conversation's own view.

Signed-off-by: Manohar Paturi <186662190+ManoharPaturi@users.noreply.github.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Returning to a conversation with a send still in flight keeps the previous conversation's transcript on screen

1 participant