YouTube's 20-Second Rewind Bug: How I Used ChatGPT to Reverse-Engineer It

YouTube had a bug – I used ChatGPT to investigate

YouTube's 20-Second Rewind Bug: How I Used ChatGPT to Reverse-Engineer It

A developer noticed YouTube randomly skipping back in time during soft reloads, often by 20 seconds per reload. Using ChatGPT and browser debugging tools, they traced the issue to a discrepancy between the checkpoint timestamp sent by YouTube's server and the URL timestamp parameter. The investigation reveals a likely bug in YouTube's web app that the Android app compensates for, and highlights the power of AI-assisted debugging.

The checkpoint timestamp received from the YouTube server is already fucked. When you close a tab, the timestamp sent to the server is X; when you reopen the tab, the server gives X - 20 - truly a remarkable piece of engineering.
  1. starcast2026

    I too noticed -20s, but I always felt it is a feature. I close browser and after a couple of days I continue watching same video. This -20s shift gives me a good context on what was the last sentence/frame, so I can comfortably continue watching. So this is a feature as far as I am concerned & felt Youtube has thought about people like me.

  2. cush

    This sounds like an intentional feature. Like how when your audio book gets interrupted by a notification it replays an extra second of audio. Personally I really like it.

  3. dmix

    > In the past few days, I noticed a bug I could not keep ignoring. Sometimes YouTube would randomly skip back in time during soft reloads

    FWIW I noticed this bug as well, I often listen to longform videos on youtube and it was very obvious something changed when you pull up half-finished videos it suddenly started skipping back when it didn't previously.

    I view Google as too big of a faceless machine to bother investigating myself, but I'm happy someone did.

More from this day

2026-09-07