docs: update google repair/import websocket documentation#1581
Merged
tyler-dane merged 2 commits intomainfrom Mar 28, 2026
Merged
docs: update google repair/import websocket documentation#1581tyler-dane merged 2 commits intomainfrom
tyler-dane merged 2 commits intomainfrom
Conversation
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
tyler-dane
added a commit
to Muhammad-Nur-Alamsyah-Anwar/compass
that referenced
this pull request
Mar 30, 2026
…Tech#1581) * docs(sync): update repair and import websocket semantics Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com> * docs(dev): add google repair troubleshooting guidance Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
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.
Summary
docs/features/google-sync-and-websocket-flow.mdwith the latest repair UX behavior and websocket payload contract.docs/development/troubleshoot.mdwith a focused runbook for Google repair failures.What changed
IMPORT_GCAL_ENDpayload shape with explicitoperation: "REPAIR" | "INCREMENTAL"and status-specific fields.useGcalSync, sync slice,useConnectGoogle) including repair-specific spinner state and toast de-dup behavior.invalid_grant=> prune +GOOGLE_REVOKED), including the absence of anIMPORT_GCAL_ENDerrored payload in that path.Codepaths covered
packages/core/src/types/websocket.types.tspackages/backend/src/user/services/user.service.tspackages/backend/src/sync/services/sync.service.tspackages/backend/src/common/services/gcal/gcal.utils.tspackages/backend/src/common/errors/integration/gcal/gcal.errors.tspackages/web/src/socket/hooks/useGcalSync.tspackages/web/src/auth/hooks/oauth/useConnectGoogle.tspackages/web/src/ducks/events/slices/sync.slice.tsWhy
PR #1580 changed repair UX and the sync completion contract; existing docs did not clearly explain operation-specific websocket payloads, repair error semantics, or expected operator troubleshooting paths.
Note
Low Risk
Documentation-only changes that clarify websocket payloads and operational repair failure modes; no production code behavior is modified.
Overview
Updates Google sync documentation to define the new
IMPORT_GCAL_ENDpayload contract (addsoperation: "REPAIR" | "INCREMENTAL"and status-specific fields) and to spell out operation-aware client handling semantics for completion, refetching, and repair-specific toasts/spinner state.Adds a troubleshooting runbook for Google Calendar repair failures, including guidance for quota/rate-limit errors vs revoked-token (
invalid_grant) behavior, and notes that revoked-token repair exits viaGOOGLE_REVOKEDwithout anIMPORT_GCAL_ENDerrored payload.Written by Cursor Bugbot for commit 078d6ed. This will update automatically on new commits. Configure here.