The agent image preview only closed with Esc or its Close button. It now also closes on a click outside the dialog; clicks inside keep it open. Co-authored-by: chiyanking <[email protected]>