Skip to content

Bump gmessages fork to upstream v26.06 (auth-refresh retry fix)#73

Merged
MaxGhenis merged 1 commit into
mainfrom
bump-gmessages-upstream
Jul 3, 2026
Merged

Bump gmessages fork to upstream v26.06 (auth-refresh retry fix)#73
MaxGhenis merged 1 commit into
mainfrom
bump-gmessages-upstream

Conversation

@MaxGhenis

Copy link
Copy Markdown
Owner

Why

Max's Google Messages session has died with failed to refresh auth token: HTTP 401 three times in three weeks (re-paired 6/16, 6/18, dead again since ~6/18). The libgm pin was frozen at the fork's 2026-03-02 base.

Upstream landed libgm/longpoll: retry on network error when refreshing auth token on 2026-05-05 — without it, a single transient network failure (laptop asleep, network switch, travel) during a scheduled token refresh permanently kills the session: the token expires, every subsequent refresh 401s, and the session needs cookie surgery or a full re-pair.

What

  • Rebased MaxGhenis/gmessages (single fork commit: ListConversationsWithCursor) onto upstream mautrix/gmessages@main (v26.06, 27 commits, clean rebase)
  • Updated the replace pin: v0.2602.1-0.20260302032635-a6d7f9898a99v0.2602.1-0.20260703132304-0e43542dfa0e

Testing

  • go build ./... clean
  • go test ./... passes (all packages)

Pairs with the macOS cookie self-healing PR — together: transient refresh failures get retried (this PR), and genuinely expired cookies get refreshed automatically (the other one).

🤖 Generated with Claude Code

Rebase MaxGhenis/gmessages (ListConversationsWithCursor) from its
2026-03-02 base onto upstream mautrix/gmessages main, picking up 27
upstream commits — most importantly 'libgm/longpoll: retry on network
error when refreshing auth token' (2026-05-05), which is the likely
root cause of the recurring dead Google sessions: one transient
network failure during a scheduled token refresh permanently killed
the session (expired token -> HTTP 401 -> needs_repair).

Full test suite passes against the new pin.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@MaxGhenis MaxGhenis merged commit 491ebcb into main Jul 3, 2026
5 checks passed
@MaxGhenis MaxGhenis deleted the bump-gmessages-upstream branch July 3, 2026 13:42
MaxGhenis added a commit that referenced this pull request Jul 3, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant