Protected Code Blocks

There are some parts of the code, let’s say a bug that we fix.

Then half an hour later, when implementing a different feature, the Agent brings the bug back, by updating the code.

I think it would be cool if we could lock some part of the code, let’s say a specific function from lines 134 to 147 for example. Just so we know we won’t have the trouble of fixing it again.

What do you guys think? Thank you.

One solution is to ask the Agent itself to write a comment around the protected block such that it will skip it when making edits and never change it.

1 Like

Great idea. I will test that, thanks.