If you made a snapshot for your brew session, you can rename the snapshot and change any part of the snapshot recipe without affecting the original recipe. If you did not make a snapshot, make a copy of the original recipe. Then you can make changes to the recipe tied to your brew session, and the 'copy' can become the new original recipe.