Repository navigation
feat(whatsapp): send handover note and target role on take and pass - #1683
Merged
Merged
Conversation
The handover note (metadata) was dropped by the channel registry for every action and no surface could target a role, so the Meta Partner Testing Guide steps that pass or take with a note (SC-2, SC-5, SC-6, SC-7) could not run. - registry forwards targetRole and metadata; a release never carries a note, and a pass to escalation is sent as an untargeted pass - public API, builder action and flow step accept targetRole and metadata with the same validation (note up to 2000 chars, no calls role) - inbox: Pass to a partner dialog with role picker and note, Take over confirms with an optional note, the escalation partner may pass too - log the Meta fbtrace_id on a rejected send and keep it on a refused take - chain test now asserts the real thread_control request bodies
… note out of error logs A rejected thread_control call logged the raw ky error, which keeps the request body, so a private handover note reached the logs. Strip the body on that endpoint only and cover it with a regression test (note absent, Meta error body and fbtrace_id still present). - one useCloseWhenSettled hook for the Pass and Take dialogs - the channel registry is the single place that drops a release's note - plain isPass const in the flow step instead of a ternary with an await - drop a pointless useMemo and three unused exports
viethung0o0
marked this pull request as draft
November 10, 2026 00:17
viethung0o0
marked this pull request as ready for review
November 10, 2026 00:53
hello-jackytruong
referenced
this pull request
in hello-jackytruong/ChatWorkAI
Nov 22, 2026
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
Test plan
check:invariants