Skip to content

feat: per-session language, voice, and context overrides - #20

Merged
kolchinski merged 1 commit into
mainfrom
feat/session-overrides-language-voice-context
Jul 21, 2026
Merged

kolchinski merged 1 commit into
mainfrom
feat/session-overrides-language-voice-context

Conversation

@kolchinski

Copy link
Copy Markdown
Member

Adds optional language, voice, and context props (React widget + headless hook) that are forwarded to POST /widget/session when 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.py in 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 --noEmit clean, vitest run 7/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

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>
@kolchinski
kolchinski requested a review from alec-bell July 20, 2026 23:07
@kolchinski
kolchinski merged commit 8ae7e53 into main Jul 21, 2026
1 check passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants