Skip to content

FIX: clear conversation panel state when switching attacks - #3576

Open
Manohar Paturi (ManoharPaturi) wants to merge 2 commits into
microsoft:mainfrom
ManoharPaturi:fix/conversation-panel-stale-list
Open

Manohar Paturi (ManoharPaturi) wants to merge 2 commits into
microsoft:mainfrom
ManoharPaturi:fix/conversation-panel-stale-list

Conversation

@ManoharPaturi

@ManoharPaturi Manohar Paturi (ManoharPaturi) commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes #3575

The render phase reset only cleared the conversation list when the new attack id was null, so switching between two attacks left the previous attack's conversations clickable under the new attack's header until the fetch resolved. The reset now runs for every attack change: it clears the list, main id, and error, and enters the loading state when the new id is present, matching the mount behavior.

Tests and Documentation

Added a regression test that loads one attack's conversations, switches to a second attack whose fetch never resolves, and asserts the old row is gone and the new fetch was requested. It fails on main and passes with the change. The full panel suite passes (17 tests) and tsc is clean.

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

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.

Conversation drawer shows the previous attack's conversations after switching attacks

2 participants