Repository navigation
Build against upstream mautrix-gmessages v0.2611.0 (fixes Google Account pairing 3/32) - #301
Open
aaymeloglu wants to merge 2 commits into
Open
aaymeloglu wants to merge 2 commits into
aaymeloglu wants to merge 2 commits into
Conversation
…2) (#1) * WIP: build against upstream mautrix-gmessages v0.2611.0 Drops the MaxGhenis/gmessages replace (116 commits behind upstream; Google account pairing fails with 'unknown error pairing: 3/32'). Adds context args, a context-free compat wrapper for the google bridge adapter, and stands in for fork-only APIs (ListConversationsWithCursor, NotifyDittoActivity, ResponsePayloadError). Tests still reference fork-only APIs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GnzuTata7q6EnYiknQZhGJ * googlecookies: allow overriding the keychain Safe Storage service name Lets --google-chrome read cookies from other Chromium browsers (Aside, Brave) by setting OPENMESSAGE_CHROME_SAFE_STORAGE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GnzuTata7q6EnYiknQZhGJ * Fix tests for upstream libgm; add OPENMESSAGES_DISABLE_LOCAL_IMPORT - Keep ResponsePayloadError/ErrNoResponsePayload as local types in internal/client (upstream libgm doesn't emit them) so pull-health classification and its tests are unchanged. - Tests: fork-only UnansweredRequestError -> wrapped ErrPhoneNotResponding / ErrConnectionClosed; NewClient gets exhttp.ClientSettings; drop the fork contract test and the RequestTimeout test. - serve: OPENMESSAGES_DISABLE_LOCAL_IMPORT=whatsapp,signal,imessage|all skips importing from local desktop app databases. go test ./... passes (34 packages). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GnzuTata7q6EnYiknQZhGJ --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The workflow asserted the MaxGhenis/gmessages replace in go.mod, which this branch removes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GnzuTata7q6EnYiknQZhGJ
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #300.
Google Account pairing fails with
unknown error pairing: 3/32against current Messages builds (reproduced on stablemessages.android_20261106). The pinnedMaxGhenis/gmessagesfork is 116 commits behindmautrix/gmessages. This builds against upstream v0.2611.0 directly. With it, pairing succeeds, and the deep backfill and cookie self-heal work.Changes
go.mod: drop theMaxGhenis/gmessagesreplace and requirego.mau.fi/mautrix-gmessagesv0.2611.0. whatsmeow is bumped to matchgo.mau.fi/util.gmCompatwrapper.NotifyDittoActivityis private upstream. The liveness probe uses anIsBugleDefaultround trip instead, which is also answered by the phone.libgm.NewClientnow takesexhttp.ClientSettings(20 s response-header timeout, as before).DownloadMediareturns anio.ReadCloser.Behavior differences to review
ResponsePayloadErrorandErrNoResponsePayloadstay as local types ininternal/clientso the pull-health classification and its tests are unchanged, but upstream never produces them, so a payload-less answer is an empty success again. If you'd rather keep that guard, rebasing the fork's patch 2 onto v0.2611 is the alternative. It conflicts with upstream's ctx refactor, which is why I didn't take that route.responseHardTimeout) instead of OpenMessage's 35 s, because upstream removedSetRequestTimeout. That interacts with the outbox's 60 s transport bound described ininternal/client/client.go.ListConversationstakes a request with aCursor, and upstream has its own hard timeout and cancels waiters on disconnect.Also included (small, separable)
OPENMESSAGE_CHROME_SAFE_STORAGEoverrides the keychain item thatpair --google-chromeand cookie self-heal read, so other Chromium browsers work (e.g."Brave Safe Storage"), together withOPENMESSAGE_CHROME_PROFILE.OPENMESSAGES_DISABLE_LOCAL_IMPORT=whatsapp,signal,imessage|allskips the periodic import from local desktop app databases. Documented in the README env table.Happy to split either of these out.
Testing
go test ./...passes (34 packages).-racesuite and Playwright e2e weren't run locally.pair --google-chrome, ranserve --web --mcp-sse, and ran deep backfills. Google cookies expired roughly every 10 min, probably from the browser rotating them, and credential repair recovered each time within about 11 s. Each expiry aborts an in-flight deep backfill, though, so a full history took several passes.🤖 Generated with Claude Code