Coming back again from #707 unfortunately we're still seeing the exact same issue with the latest release of Anvil 2.5.0-beta01.
I've updated my repro case from the previous ticket here with trackSourceFiles enabled: main...andreaswaltenberger:anvil:repro/assisted_factory
Unfortunately it seems the incremental compilation fixes (#836) did not eliminate the root cause for this specific issue.