Steps to reproduce:
- Create a new Unity project using the Universal 3D template
- Enable AI toolbar button (Burger button > Services > AI)
- Click the AI toolbar button and select "Agree and install Unity AI"
- When loading bar appears, click the "Cancel" button
- Enter Play Mode
- Observe the Console window
- Repeat step 3
- Observe the Editor
- Restart the Editor
- Click the AI toolbar button
- Observe the Editor
Actual results: Cancelling the package installation leads to invisible compilation errors that prevent user from entering Play Mode (compilation errors are not visible in the Console window), trying to install the same package again does not do anything, and when the Editor is restarted the package appears to be installed
Expected results: The "Cancel" button should cancel the package installation, or if that is not possible, it should at least prevent from invisible errors/breakage. If the "Cancel" button does not cancel the package installation, maybe there shouldn't be a cancel button at all
Reproducible with versions: 6000.0.70f1, 6000.3.11f1, 6000.4.0b11, 6000.5.0a8
Tested on (OS): MacOS Silicon Tahoe 26.2
Notes:
- Reproduces with other packages as well