Skip to content

fix: continue execution when initial resume wait times out - #161

Merged
andreitava-uip merged 6 commits into
mainfrom
fix/debug-resume-timeout-continue
Aug 26, 2026
Merged

fix: continue execution when initial resume wait times out#161
andreitava-uip merged 6 commits into
mainfrom
fix/debug-resume-timeout-continue

Conversation

@andreitava-uip

@andreitava-uip andreitava-uip commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Problem

A debug run starts paused, waiting up to 60s for a resume command from the debug bridge. If the client disconnects and never sends one, the run ended FAULTED — intermittently failing resumed jobs whose debug client was no longer attached.

Fix

On the initial resume-wait timeout, assume the bridge is disconnected and continue unattended instead of faulting: disconnect the bridge, then run the delegate in a single pass-through — no breakpoints, no inline resume handling. A suspension is terminal (the platform resumes it via the real trigger), avoiding unbounded waits on debug commands that can never arrive.

The explicit-quit path is unchanged.

Testing

New tests cover: timeout → continue to success with stale breakpoints ignored, suspension after timeout ends SUSPENDED, and a failing bridge disconnect not faulting the run.

Manual validation for process tools and escalation scenarios.

Copilot AI lite review requested due to automatic review settings August 19, 2026 11:52
@andreitava-uip
andreitava-uip requested review from a team and cristipufu as code owners August 19, 2026 11:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR changes debug runtime behavior so that if the initial “wait for resume” times out, execution continues (instead of faulting), and adds a regression test for that scenario.

Changes:

  • Update UiPathDebugRuntime._stream_and_debug to log a warning and proceed when the initial resume wait times out.
  • Add an async test verifying a timeout on the initial resume wait still results in successful execution and emits completion.

Reviewed changes

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

File Description
tests/test_debugger.py Adds coverage for continuing execution when the initial resume wait times out.
src/uipath/runtime/debug/runtime.py Changes timeout handling to proceed rather than yield a faulted result and exit.

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

Comment thread src/uipath/runtime/debug/runtime.py
Comment thread src/uipath/runtime/debug/runtime.py Outdated
Comment thread src/uipath/runtime/debug/runtime.py Outdated
@andreitava-uip andreitava-uip changed the title fix(debug): continue execution when initial resume wait times out fix: continue execution when initial resume wait times out Aug 19, 2026
@andreitava-uip
andreitava-uip force-pushed the fix/debug-resume-timeout-continue branch from 81e2dab to f61331b Compare August 25, 2026 11:05
@sonarqubecloud

Copy link
Copy Markdown

@andreitava-uip
andreitava-uip merged commit 9640455 into main Aug 26, 2026
100 of 101 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants