Reproduction steps:
- Open the attached "IN-148685" project
- Go to "Edit" > "Project Settings..." > "Services" and create a new cloud project
- Open Task Manager, go to the "Processes" section, and search for "relay" to find the "Relay server for Unity AI Assistant" process
- Switch back to the Editor and open the AI Assistant window ("Window" > "AI" > "Assistant")
- Paste the task from the "Internal Notes" section and send it
- Wait until the Assistant prompts you to allow the creation of a script
- Allow the script creation
- When the domain reload starts, quickly switch to Task Manager and end the relay process (right-click > "End Task")
- Switch back to the Editor and observe the AI Assistant window status
Actual result: The AI Assistant window is stuck in an infinite "Preparing" state
Expected result: An error is thrown, or the task resumes uninterrupted
Reproducible with: 2.17.0-pre.1 (6000.0.81f1, 6000.3.22f1, 6000.5.8f1, 6000.6.0b9, 6000.7.0a5)
Reproducible environment: Windows 10 (Reporter), Windows 11, Ubuntu 24.04 LTS
Not reproducible environment: No other environments tested
Notes:
- The issue does not reproduce 100% of the time
- The relay process usually reappears in Task Manager right after it is ended, but the Assistant stays stuck
- Stopping the stuck run and asking the Assistant to continue, or reopening the AI Assistant window, does not clear the state; it returns to the infinite "Preparing" state
- Reopening the Editor clears the Assistant stuck state