Repository navigation
Conversation
`chatEndMessage` is a documented VapiWidget prop, but the embed's attribute map had no entry for it, so `<vapi-widget chat-end-message=…>` and `data-chat-end-message` were silently ignored and the chat-ended screen always read "This chat has ended. Thank you.". It is the only non-callback prop missing from the map. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
blaab2
added a commit
to blaab2/client-sdk-react
that referenced
this pull request
Sep 25, 2026
This branch has not been deployed
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.
Problem
chatEndMessageis a documentedVapiWidgetprop, and it works when the React component is used directly. The embed's attribute → prop map insrc/widget/index.tshas no entry for it, though. So<vapi-widget chat-end-message="…">anddata-chat-end-message="…"are silently ignored, and the chat-ended screen always shows the hard-coded default, "This chat has ended. Thank you." We hit this on a German/French site, where that one sentence stayed in English.Comparing
VapiWidgetPropswith the map,chatEndMessageis the only non-callback prop without an attribute.Change
A single line in the map:
'chat-end-message': 'chatEndMessage', next tochat-first-message.Tests
The existing embed specs don't reach the chat-ended screen (that needs a live assistant), so there's nothing to extend here. We confirmed the fix downstream with a Playwright test that stubs the
/chat/webstream, clicks End Chat, and reads the end-screen text.npm run lint,npm run type-check,npm run format:checkandnpm run test:cipass.Related: #38 (localizable labels), #39 (GFM markdown). All three are independent and apply cleanly on
main.🤖 Generated with Claude Code