Skip to content

fix: remove run-as-me=true propagation override#1010

Open
maxduu wants to merge 1 commit into
mainfrom
fix-remove-run-as-me
Open

fix: remove run-as-me=true propagation override#1010
maxduu wants to merge 1 commit into
mainfrom
fix-remove-run-as-me

Conversation

@maxduu

@maxduu maxduu commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

No longer propagates run-as-me=true for agent's process tools. Note that this logic was not working correctly in the past (should have been checking for robot.user rather than user type token) and we are also not using this method of overriding RunAsMe=true. Instead we're relying on package-requirements of the Agent, set in Orchestrator.

@maxduu
maxduu requested review from Copilot and norman-le July 24, 2026 23:45
@maxduu maxduu changed the title fix: remove run-as-me propagation fix: remove run-as-me=true propagation override Jul 24, 2026

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

Removes the previous “RunAsMe=true propagation override” path for agent process tools, aligning behavior with the intended deployment-time configuration (Orchestrator package requirements) and updating tests/versioning accordingly.

Changes:

  • Removed user-token-based RunAsMe decision logic from the tool factory and stopped passing run_as_me into process tool creation.
  • Updated create_process_tool invocation behavior so processes.invoke_async is no longer called with a run_as_me kwarg.
  • Updated unit tests and bumped project/lockfile version to 0.14.17.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
uv.lock Bumps locked package version to 0.14.17.
pyproject.toml Bumps project version to 0.14.17.
src/uipath_langchain/agent/tools/tool_factory.py Removes RunAsMe propagation logic and simplifies process tool creation call site.
src/uipath_langchain/agent/tools/process_tool.py Removes RunAsMe forwarding to invoke_async and updates process tool factory signature.
tests/agent/tools/test_tool_factory.py Adjusts assertions to match the new create_process_tool call signature.
tests/agent/tools/test_process_tool.py Removes RunAsMe-related expectations/tests to match the updated invocation behavior.

Comment on lines +45 to 46
def create_process_tool(resource: AgentProcessToolResourceConfig) -> StructuredTool:
"""Uses interrupt() to suspend graph execution until process completes (handled by runtime)."""
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants