Skip to content

fix(voice): let the in-flight tool drain outlast a single tool call [JAR-10169] - #1867

Open
JoshParkSJ wants to merge 1 commit into
mainfrom
josh/voice-tool-call-timeout-3min-JAR-10169
Open

fix(voice): let the in-flight tool drain outlast a single tool call [JAR-10169]#1867
JoshParkSJ wants to merge 1 commit into
mainfrom
josh/voice-tool-call-timeout-3min-JAR-10169

Conversation

@JoshParkSJ

@JoshParkSJ JoshParkSJ commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Part 3 of 3 for JAR-10169. Companions: uipath-agents-python#695 (the substantive fix), AgentInterfaces#1163.

_INFLIGHT_TOOL_DRAIN_AFTER_AGENT_END_TIMEOUT_SECONDS 30s → 190s. Once a tool call can run 180s (#695), a drain shorter than one tool call means any session ending mid-tool abandons the in-flight task, so it never reports.

Trade-off: a URT job can linger ~3 minutes after the caller hangs up if a Process tool is still running. Cancelling would not cancel the Orchestrator job anyway.

15 passed in test_voice_bridge.py; ruff clean.

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations test:uipath-runtime labels Aug 21, 2026
Voice tool calls can now run up to 180s; a 30s drain abandoned any tool still
in flight when the session ended, so it never got to report. 190s sits just
above the tool deadline. Bumps to 2.14.7.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@JoshParkSJ
JoshParkSJ force-pushed the josh/voice-tool-call-timeout-3min-JAR-10169 branch from 361ecae to 0ee5b0c Compare August 23, 2026 04:55
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

🚨 Heads up: uipath-langchain cross-tests are FAILING 🚨

Your changes may break the uipath-langchain-python integration.

⚠️ These checks are NOT enforced by branch protection rules. Please review the failures before merging.

🔍 Inspect the failed run →

@JoshParkSJ
JoshParkSJ marked this pull request as ready for review August 23, 2026 05:27
Copilot AI lite review requested due to automatic review settings August 23, 2026 05:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the UiPath Python CLI voice bridge to allow in-flight voice tool calls to finish (or hit their own timeout) after the agent/session ends, aligning the drain behavior with longer-running voice tool calls.

Changes:

  • Increased the post-session in-flight tool drain cap from 30s to 190s in the voice bridge implementation.
  • Bumped the uipath package version from 2.14.6 to 2.14.7.
  • Updated the lockfile to reflect the new package version.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
packages/uipath/src/uipath/_cli/_chat/_voice_bridge.py Extends the in-flight tool drain timeout to avoid dropping mid-tool-call work on session end.
packages/uipath/pyproject.toml Bumps package version to 2.14.7.
packages/uipath/uv.lock Updates the locked editable uipath package version to 2.14.7.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Labels

test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants