From a3d87209974b1436c260207f0198b62391246433 Mon Sep 17 00:00:00 2001 From: Cristian Pufu Date: Sun, 30 Nov 2025 18:21:11 +0200 Subject: [PATCH] fix: resumable breakpoint result --- README.md | 2 +- pyproject.toml | 2 +- src/uipath/runtime/resumable/runtime.py | 4 ++++ uv.lock | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7bd543e..73b130c 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ uv add uipath-runtime ## Developer Tools -For testing and debugging your runtimes, check out [`uipath-dev`](https://github.com/uipath/uipath-dev-python) - an interactive terminal application for building, testing, and debugging UiPath Python runtimes, agents, and automation scripts. +Check out [`uipath-dev`](https://github.com/uipath/uipath-dev-python) - an interactive terminal application for building, testing, and debugging UiPath Python runtimes, agents, and automation scripts. ## Runtime Protocols diff --git a/pyproject.toml b/pyproject.toml index 5b525c3..578de0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-runtime" -version = "0.1.0" +version = "0.1.1" description = "Runtime abstractions and interfaces for building agents and automation scripts in the UiPath ecosystem" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" diff --git a/src/uipath/runtime/resumable/runtime.py b/src/uipath/runtime/resumable/runtime.py index b2a0809..75ca634 100644 --- a/src/uipath/runtime/resumable/runtime.py +++ b/src/uipath/runtime/resumable/runtime.py @@ -8,6 +8,7 @@ UiPathRuntimeProtocol, UiPathStreamOptions, ) +from uipath.runtime.debug import UiPathBreakpointResult from uipath.runtime.events import UiPathRuntimeEvent from uipath.runtime.result import UiPathRuntimeResult, UiPathRuntimeStatus from uipath.runtime.resumable.protocols import ( @@ -136,6 +137,9 @@ async def _handle_suspension( if result.status != UiPathRuntimeStatus.SUSPENDED: return result + if isinstance(result, UiPathBreakpointResult): + return result + # Check if trigger already exists in result if result.trigger: await self.storage.save_trigger(result.trigger) diff --git a/uv.lock b/uv.lock index c986c44..297e92d 100644 --- a/uv.lock +++ b/uv.lock @@ -938,7 +938,7 @@ wheels = [ [[package]] name = "uipath-runtime" -version = "0.1.0" +version = "0.1.1" source = { editable = "." } dependencies = [ { name = "uipath-core" },