feat: per-session language, voice, and context overrides - #20
Merged
Merged
Conversation
Forward optional language/voice/context props to POST /widget/session when a call starts, overriding the agent's configured defaults for that session. The API already supports all three params and the docs already document them as widget props — this is the missing client half. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
alec-bell
approved these changes
Jul 21, 2026
Contributor
|
🎉 This PR is included in version 1.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Adds optional
language,voice, andcontextprops (React widget + headless hook) that are forwarded toPOST /widget/sessionwhen a call starts, overriding the agent's configured defaults for that session.Context: the API side already supports all three params (
api/calls/widget_views.pyin the monorepo), and the public docs (widget/react.mdx, cdn-script-tag.mdx, headless-hook.mdx, overview.mdx) already document them as supported widget props — but no published widget build has the client half, so passing these props today silently does nothing. This code was written 2026-06-17 and recovered from an uncommitted monorepo submodule checkout; it is the only copy of the feature anywhere.Verification:
tsc --noEmitclean,vitest run7/7 (2 new tests covering the forwarded request body), rebased onto current main (Azure OIDC release era).After merge + release, the monorepo submodule pointer will be bumped (closes monorepo finding WIDGET-02).
🤖 Generated with Claude Code