Skip to content

fix(remote-a2a): fall back to folder context when folder_path is missing#1749

Merged
radugheo merged 1 commit into
mainfrom
fix/remote-a2a-folder-fallback
Jun 24, 2026
Merged

fix(remote-a2a): fall back to folder context when folder_path is missing#1749
radugheo merged 1 commit into
mainfrom
fix/remote-a2a-folder-fallback

Conversation

@radugheo

@radugheo radugheo commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator
  • RemoteA2aService._retrieve_spec now resolves the folder through a _resolve_folder_key helper that mirrors McpService: when no folder_path is provided it falls back to the FolderContext instead of raising Cannot obtain folder_key without providing folder_path.
  • Enables A2A runs without the UIPATH_FOLDER_PATH env var (e.g. uipath debug with no UIPATH_FOLDER_PATH and no resource override)
  • Adds A2A service tests for both the fallback and the explicit-folder paths.
  • Bumps uipath-platform to 0.1.75 and uipath to 2.11.12.

RemoteA2aService._retrieve_spec now resolves the folder via a _resolve_folder_key
helper (mirroring McpService): when no folder_path is supplied it falls back to
the FolderContext instead of raising "Cannot obtain folder_key without providing
folder_path". This lets local runs (e.g. uipath debug without UIPATH_FOLDER_PATH)
resolve the agent the same way MCP servers already do.

Bumps uipath-platform to 0.1.75 and uipath to 2.11.12.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 24, 2026 13:56
@radugheo radugheo self-assigned this Jun 24, 2026
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Jun 24, 2026
@sonarqubecloud

Copy link
Copy Markdown

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

This PR fixes Remote A2A agent retrieval so that when folder_path is not provided it no longer raises, and instead falls back to the folder context (mirroring the existing McpService behavior). This unblocks local A2A runs (e.g., uipath debug) where UIPATH_FOLDER_PATH is unset and no explicit resource override is provided.

Changes:

  • Add RemoteA2aService._resolve_folder_key() and use it in _retrieve_spec() to fall back to FolderContext when folder_path is missing.
  • Add unit tests covering both the fallback-to-context behavior and the explicit folder_path resolution path.
  • Bump package versions: uipath-platform0.1.75, uipath2.11.12, and update both uv.lock files accordingly.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/uipath/uv.lock Updates lockfile to reflect the new uipath / uipath-platform versions and refreshed resolution metadata.
packages/uipath/pyproject.toml Bumps uipath version and raises minimum uipath-platform dependency to >=0.1.75.
packages/uipath-platform/uv.lock Updates uipath-platform lockfile for the new version and refreshed resolution metadata.
packages/uipath-platform/tests/services/test_remote_a2a_service.py Adds regression coverage for _retrieve_spec() folder key resolution (fallback vs explicit).
packages/uipath-platform/src/uipath/platform/agenthub/_remote_a2a_service.py Implements _resolve_folder_key() and uses it to avoid raising when folder_path is missing.
packages/uipath-platform/pyproject.toml Bumps uipath-platform version to 0.1.75.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@radu-mocanu radu-mocanu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Golden-rule review

Reviewed the remote-a2a folder fallback change against the golden rules. The version bumps, lock files, and tests are consistent with the rules. No golden-rule violations found.

No golden-rule violations found.

@radugheo radugheo merged commit 3d0cfdc into main Jun 24, 2026
95 checks passed
@radugheo radugheo deleted the fix/remote-a2a-folder-fallback branch June 24, 2026 14:51
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants