Match the AI provider remove dialog and lock the pending-state ConfirmDialog contract in the source regression. Fixes #3920 Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com>