fix: backport voice session end detail to uipath 2.11#1789
Conversation
There was a problem hiding this comment.
Pull request overview
Backports preservation of the voice_session_ended payload (“end detail”) into the 2.11-compatible CLI voice bridge so downstream job runtime code can access the original CAS-provided termination metadata, and bumps the SDK version for release.
Changes:
- Persist and expose
voice_session_endedpayload via a newend_detailproperty onVoiceToolCallSession(defensive copy semantics). - Add/extend unit tests validating opaque payload preservation, non-dict handling, and protection against late overwrites.
- Bump
uipathpackage version to2.11.19.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/uipath/src/uipath/_cli/_chat/_voice_bridge.py | Captures and exposes voice_session_ended payload (end_detail) and logs key fields. |
| packages/uipath/tests/cli/chat/test_voice_bridge.py | Adds tests ensuring payload preservation, immutability via deep copies, and terminal-state protection. |
| packages/uipath/pyproject.toml | Bumps package version to 2.11.19 for the backport release. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| if self._done.is_set(): | ||
| return | ||
|
|
||
| detail = deepcopy(data) if isinstance(data, dict) else {} | ||
| self._end_detail = detail |
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
🚨 Heads up:
|
🚨 Heads up:
|
Summary
voice_session_endeddetail preservation frommainonto the 2.11-compatible uipath line.uipath-runtime>=0.11.5,<0.12.0— the runtime 0.11.9 change is typing-only and not required by this backport (the only new import iscopy.deepcopy).Notes
uipath-runtime==0.11.9; it can be built and published independently.codex/base-uipath-2.11.xis an ancestor ofmainat the last 2.11.18 commit. There is norelease/v2.11.xbranch (main is already on 2.12.x), so this historical-commit base is used as the 2.11 hotfix base.uipath>=2.11.19,<2.12.0.Test plan
uv run pytest packages/uipath/tests/cli/chat/test_voice_bridge.py -q