I’ve lost a bunch of code this way multiple times now. Here are the steps to reproduce:
- open compose
- ask for a change
- reject the change
- change the code manually
- go back into the composer editor to try again
- composer updates code to the checkpoint from step 2 deleting all changes made in step 5
- undo doesn’t get changes from step 5 back
The only way to avoid this problem is to “reset” the composer at step 5 instead of just changing the prompt and rerunning. However, this means you also must recreate the set of files to include in the context.