Launch ZAP, scan something, open the Retest dialog. Start a new ZAP session, don't bother scanning anything, just re-open the Retest dialog. Note it still has the old alerts tree displayed.
Steps to reproduce the behavior
Launch ZAP. (Ensure passive scan rules are enabled.)
Launch a browser via Browser launch, and navigate to scanme.nmap.org (or whatever).
Note there are alerts in the tree.
Visit Tools > Retest ... (or use the context menu).
Close the dialog.
Start a new ZAP session.
Visit Tools > Retest ...
Note the original Alert Tree is still shown.
Similarly if you serially open saved sessions and try Retest it will display the alert tree from the first time the dialog was displayed.
Expected behavior
The Retest alert tree should be updated when the session changes.
Describe the bug
Launch ZAP, scan something, open the Retest dialog. Start a new ZAP session, don't bother scanning anything, just re-open the Retest dialog. Note it still has the old alerts tree displayed.
Steps to reproduce the behavior
Similarly if you serially open saved sessions and try Retest it will display the alert tree from the first time the dialog was displayed.
Expected behavior
The Retest alert tree should be updated when the session changes.
Software versions
Screenshots
Errors from the zap.log file
None
Additional context
N/A
Would you like to help fix this issue?