Skip to content

fix(wechat): deliver new-user welcome after handshake - #49

Merged
Ltcc0 merged 7 commits into
mainfrom
codex/fix-wechat-anonymous-auth-onboarding
Jul 25, 2026
Merged

Ltcc0 merged 7 commits into
mainfrom
codex/fix-wechat-anonymous-auth-onboarding

Conversation

@zs-andy

@zs-andy zs-andy commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • queue the complete onboarding welcome and registration link only when activation creates a new database user
  • consume the first inbound message as the transport handshake so it never enters the Agent conversation
  • unlock and deliver the encrypted welcome outbox after that handshake, marking delivery only after all 7 bubbles succeed
  • keep existing and reconnected users idempotent: if the user already exists, no welcome is queued

Verification

  • pnpm agent:migrations:check
  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build

Tests cover new-user delivery, existing-user suppression, reconnect idempotency, first-inbound consumption, handshake gating, and all 7 welcome/link bubbles.

@Ltcc0
Ltcc0 merged commit 53089a2 into main Jul 25, 2026
1 check passed
@Ltcc0
Ltcc0 deleted the codex/fix-wechat-anonymous-auth-onboarding branch July 25, 2026 22:53
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.

2 participants