Skip to content

fix(flows): make get user data auto skip and skip button work - #1678

Merged
viethung0o0 merged 1 commit into
mainfrom
fix/get-user-data-auto-skip
Nov 9, 2026
Merged

viethung0o0 merged 1 commit into
mainfrom
fix/get-user-data-auto-skip

Conversation

@viethung0o0

@viethung0o0 viethung0o0 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Auto Skip now works on its own: a contact who never answers takes the Skip branch once the time runs out, counted from the first question.
  • The Skip button is sent with the question on every channel, and tapping it takes the Skip branch.
  • An invalid reply sends the retry message, then asks the question again with the Skip button.
  • After the step finishes (answer, Skip or auto skip), its branch runs first and then the flow continues past the step. A branch and Continue to the same node send it once.
  • A reply, Skip tap and timeout racing each other settle the step once; a late reply after a skip is ignored.
  • New Get User Data steps start with a Skip label in the builder's language; the public API gets defaults and descriptions for these fields.
  • Two migrations: a new smart delay type, then a concurrent unique index for one active timer per conversation.

Test plan

  • pnpm lint parts: check:invariants, ultracite check, i18n:check, db:check-drift
  • check-types: worker, builder, business, flow-config, worker-config (pre-commit typecheck passed)
  • vitest: worker, builder, business, flow-config, worker-config and channel integrations
  • Manual on webchat: silent timeout, retry then timeout, valid answer, late reply, attempts limit, restart while waiting, Auto Skip off

@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 9, 2026
@viethung0o0
viethung0o0 marked this pull request as ready for review November 9, 2026 12:44
@viethung0o0
viethung0o0 merged commit b0ba2f5 into main Nov 9, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants