feat: hydrate managed workspaces in cli - #1845
Open
radu-mocanu wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the uipath CLI runtime wiring to support managed workspace hydration for cloud jobs, restoring workspace files across suspend/resume and carrying conversation-scoped workspace snapshots via metadata events, with equivalent behavior for both run and debug executions.
Changes:
- Bump
uipathto 2.15.0 and requireuipath-runtime>=0.13.0,<0.14.0. - Wrap runtimes in
cli runandcli debugwithHydrationRuntime(job-scoped) andConversationalWorkspaceRuntime(conversation-scoped) when managed workspaces are enabled. - Add CLI tests asserting workspace runtime chain installation, precedence rules, and cleanup behavior.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/uipath/uv.lock | Updates lockfile for uipath 2.15.0 and uipath-runtime 0.13.0. |
| packages/uipath/pyproject.toml | Bumps package version and runtime dependency constraint. |
| packages/uipath/testcases/langchain-cross/pyproject.toml | Extends uv overrides to include uipath-runtime version range. |
| packages/uipath/src/uipath/_cli/cli_run.py | Adds managed-workspace hydration + conversational snapshot runtime wrapping and revised cleanup logic. |
| packages/uipath/src/uipath/_cli/cli_debug.py | Mirrors managed-workspace wrapping behavior for debug execution chain and cleanup. |
| packages/uipath/tests/cli/test_run.py | Adds tests for workspace runtime installation, precedence, and cleanup robustness in run. |
| packages/uipath/tests/cli/test_debug_simulation.py | Adds tests validating workspace runtime installation in debug chain and related cleanup behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+320
to
+327
| client = UiPath() | ||
| workspace = Workspace.create() | ||
| workspace.path = workspace.path.resolve() | ||
| hydrator = WorkspaceHydrator( | ||
| workspace_path=workspace.path, | ||
| attachments=client.attachments, | ||
| jobs=client.jobs, | ||
| current_job_key=ctx.job_id, |
Comment on lines
+233
to
+242
| client = UiPath() | ||
| workspace = Workspace.create() | ||
| workspace.path = workspace.path.resolve() | ||
| hydrator = WorkspaceHydrator( | ||
| workspace_path=workspace.path, | ||
| attachments=client.attachments, | ||
| jobs=client.jobs, | ||
| current_job_key=ctx.job_id, | ||
| folder_key=ctx.folder_key, | ||
| ) |
radu-mocanu
force-pushed
the
feat/conversation-meta-events-bridge
branch
3 times, most recently
from
August 6, 2026 07:31
b4a1d24 to
c74d124
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
Depends on #1843.
managed workspaces need both job-scoped suspend state and conversation-scoped snapshots, with suspended state taking precedence.