How to debug with an LLM
You rename a file and click Save. The new name appears. Refresh the page and the old name is back.
- Reproduce it. Try the rename on one file. Give the model the exact steps, the name you expected and the name you saw.
- Narrow it down. Look at the save request in the browser’s Network tab. If it sends the old name, start with the form. If it sends the new name, check the server response and what got saved.
- Prove the fix. Write a test that renames the file, reloads the page and checks the name. Run it before and after the change. It should fail first and pass with the fix.
A prompt to try
Renaming a file works until I refresh. What should I check first to tell whether the browser sent the wrong name or the server saved it incorrectly? Tell me what to look for before suggesting a fix.




