diff --git a/pyproject.toml b/pyproject.toml index 77a37c5..c624e4c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-runtime" -version = "0.13.3" +version = "0.13.4" 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/workspace/conversational.py b/src/uipath/runtime/workspace/conversational.py index 635b95c..8f8f914 100644 --- a/src/uipath/runtime/workspace/conversational.py +++ b/src/uipath/runtime/workspace/conversational.py @@ -150,7 +150,8 @@ async def get_schema(self) -> UiPathRuntimeSchema: return await self.delegate.get_schema() async def dispose(self) -> None: - """Release resources owned by this wrapper.""" + """Dispose the delegate.""" + await self.delegate.dispose() async def _hydrate(self, input: Mapping[str, object] | None) -> None: if self._hydrated: diff --git a/tests/workspace/test_conversational_workspace.py b/tests/workspace/test_conversational_workspace.py index 46cafd1..0c73b44 100644 --- a/tests/workspace/test_conversational_workspace.py +++ b/tests/workspace/test_conversational_workspace.py @@ -532,7 +532,9 @@ async def fail_upload(**_: Any) -> uuid.UUID: @pytest.mark.asyncio -async def test_dispose_does_not_dispose_injected_dependencies(tmp_path: Path) -> None: +async def test_dispose_disposes_delegate_but_not_injected_dependencies( + tmp_path: Path, +) -> None: delegate = ScriptedRuntime( events=[], result=UiPathRuntimeResult(status=UiPathRuntimeStatus.SUCCESSFUL), @@ -548,8 +550,7 @@ async def test_dispose_does_not_dispose_injected_dependencies(tmp_path: Path) -> await runtime.dispose() - assert not delegate.disposed + assert delegate.disposed assert workspace.path.exists() - await delegate.dispose() await workspace.dispose() diff --git a/uv.lock b/uv.lock index 3625ed5..a0dd246 100644 --- a/uv.lock +++ b/uv.lock @@ -1153,7 +1153,7 @@ wheels = [ [[package]] name = "uipath-runtime" -version = "0.13.3" +version = "0.13.4" source = { editable = "." } dependencies = [ { name = "chardet" },