How to reproduce:
- Open the attached "IN-149396" project
- Install Unity CLI (more information in the Internal Notes)
- Open the “Main” scene in the Editor
- Trigger a Player build through async build command (“unity command build --profileName Windows --confirm”)
- Observe the Hierarchy window in the Editor
Actual result: The build succeeds, but every scene in the active Build Profile remains loaded in the Editor
Expected result: The Pipeline build command restores the pre-build scene setup after completion
Reproducible with: 0.3.1-exp.1, 0.4.0-exp.1 (6000.6.0f1, 6000.7.0a6)
Not reproducible with: 0.5.0-exp.1 (6000.6.0f1, 6000.7.0a6)
Fixed in: 0.5.0-exp.1
Reproducible on: Windows 11
Not reproducible on: No other environments tested