All files recompiled after small change

Since a few weeks platformio seems to recompile all files when building our ESP32 project, including all libs and even the Arduino Framework files, after only making a small change. Also after running a succesfull build, and immediattely after that running an upload, it again compiles all sourcefiles, whcih takes several minutes.

In these cases there are no changes to platformio.ini

Can you consistently reproduce this behavior in a minimal project? Can you outline the exact steps needed to trigger this bug?