How to reproduce:
1. Extract attached “IN-147772” project
2. Make sure that “Library” folder is eliminated
3. Run this batch command: "
{path_to_editor}
\Unity.exe" -batchmode -quit -projectPath "
{path_to_project}" -executeMethod DomainReloadRepro.Run -logFile "{path_to_project}
\repro.log"
4. In project folder open repro.log and use “CTRL+F” to search for “[Repro] RESULT:” row
5. Observe the result line
Actual result: importing the corrupt asset requests a domain reload even with no compilation pending; in batchmode it never clears before BuildPlayer, so the build fails with "A domain reload is pending" naming no asset
Expected result: the repair does not request a domain reload, and the build is not failed
Reproducible with: 6000.0.0f1, 6000.0.80f1, 6000.3.21f1, 6000.5.6f1, 6000.6.0b6, 6000.7.0a3
Reproducible on: Windows 11 (25H2)
Not reproducible on: No other environments tested