Skip to content

xchat: fixed synchronization issues - #116

Merged
highesttt merged 4 commits into
mainfrom
highest/plat-38383
Aug 18, 2026
Merged

xchat: fixed synchronization issues#116
highesttt merged 4 commits into
mainfrom
highest/plat-38383

Conversation

@highesttt

@highesttt highesttt commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Make inbox pagination resumable w/ catchup whenever the websocket reconnects
  • Improved websocket reliability
  • Fixed backfill gaps in individual chats
  • Recover missing keys, incomplete profile data due to the problems listed above

Testing

  • Local bridge running for almost a week, no connection drops, accounts connected, broken profiles fixed

Checklist

PLAT-38383
PLAT-38382

@highesttt highesttt changed the title fix: plat-38383/plat-38384 - xchat would stop syncing randomly xchat: fixed synchronization issues Aug 14, 2026
Comment thread pkg/twittermeow/account.go Outdated
if len(resp.Errors) > 0 && resp.Errors[0].Message != "" {
return CurrentUserProfile{}, fmt.Errorf("GetUsersByIdsForXChat error: %s", resp.Errors[0].Message)
if len(resp.Errors) > 0 {
return CurrentUserProfile{}, fmt.Errorf("GetUsersByIdsForXChat returned %d GraphQL errors", len(resp.Errors))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it's hiding information that was shown before, so maybe don't do that. Also, instead of repeating this for every call separately, it should probably just be handled in makeXChatQueryRequest? Implement the error interface for XChatGraphQLError, then use errors.Join if there are multiple

@highesttt
highesttt requested a review from Fizzadar August 17, 2026 16:56

@Fizzadar Fizzadar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a quick scan and looks ok. Going forward lets split these PRs up a bit and also document the changes in the description please.

@highesttt
highesttt merged commit b216bf7 into main Aug 18, 2026
11 checks passed
@highesttt
highesttt deleted the highest/plat-38383 branch August 18, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants