New Input System won't respond when updating script or switching weapons

I moved from using the old input sytem to the new one some time ago. Ever since I’ve been having a problem where if any script is edited and saved while a scene is in play mode, upon the script being recompiled, the inputs no longer register. This also occurs when my characters weapons are disabled and then enabled. The input debugger shows that the inputs are being registered, but when I get the script to log the input values, they never change from 0. Anyone have any idea what might be going wrong?

Changes to the editor are not automatically saved when in play mode. Thats normal unity behaviour.

Sorry it doesn’t answer your question, but I have never had success with building any script while in play mode, input system or not.

It always results in errors whatever I’m doing. I always stop, rebuild, play.