My solution for this is usually to just start a new workspace, reattach pods and code to it, and sweep the mess under the rug. But uggghhhhh... that's still a mess! Build reproduceability is dead on this platform.