If an assistant jumps straight to a fix, you have no way to know whether it fixed the bug or just changed the code. Reproducing it first turns a guess into a test.
The habit
- Ask for a minimal reproduction: the smallest input or test that triggers the failure.
- Run it and watch it fail for the reason you expect.
- Only then ask for the fix, and run the same reproduction to watch it pass.
- Keep the reproduction as a regression test so the bug can’t quietly return.
Before changing any code, write the smallest test that reproduces
this crash, run it, and show me the failing output.
Don't fix anything yet.
Bonus: shrinking a bug to its smallest reproduction often reveals the cause on its own.