Try this custom model instruction and see if it improves, I’ve had good success with it: Gemini 2.5 pro 06-05 has issues with Edit & Reapply - #10 by yulin0629
Try this custom model instruction and see if it improves, I’ve had good success with it: Gemini 2.5 pro 06-05 has issues with Edit & Reapply - #10 by yulin0629