There appears to be some undocumented factors that can trigger a history change in the Gmail API.
The Gmail API sync docs say...
History records provide a list of IDs for messages that have been added, deleted, or had their labels modified since the time of the startHistoryId.
See https://developers.google.com/gmail/api/guides/sync
...however, it appears that a new history record is created when you reopen a previously viewed message/thread from the native Gmail desktop UI.
Can someone on the Gmail API team confirm this?
And if so, what other undocumented events trigger a new history record?
BTW: Are there plans to modify the history list
resource so that it returns an immutable event log of the state changes so that the state changes could be replayed?