Fine on Desktop, Blank on Safari: Four Things to Gather Before You Ask an AI to Diagnose It
After a shuffle, my lazy-loaded images never loaded again, but only in Safari on iPhone. Here is what to collect by hand before asking Gemini or any other model to diagnose a bug that does not reproduce on desktop, plus a request template you can paste.
Never hand Gemini a raw ANR thread dump
An ANR dump came in at 96 threads and 33,616 characters. Keeping only main cuts 98 percent, but it also deletes the thread that caused the block. Here is a lock-chain preprocessor, measured three ways.
When Gemini API Output Seems Wrong: 7 Common Causes and a Diagnostic Checklist
When Gemini API returns unexpected output — empty responses, wrong language, broken JSON, or Thinking content leaking into answers — here are 7 common causes with a practical diagnostic checklist and code examples.
Making Gemini API Output Reproducible with the seed Parameter — Practical Patterns for Tests and Debugging
A practical guide to the Gemini API seed parameter: measured match rates over 100 runs, seeds derived from test case IDs plus a nightly sweep, a four-level comparison ladder for snapshots, and how to fix a wrapper that drops seed.