Skip to content

Commit db26ce2

Browse files
committed
fix(eval): close two adversarial-review findings
1. Pin uipath-platform>=0.1.43 in uipath/pyproject.toml. The new UiPathConfig.agent_id / cloud_user_id properties only exist after the 0.1.43 bump; the old >=0.1.42 constraint allowed a skewed install where uipath==2.10.61 calls AttributeError-raising properties. 2. Restrict the CLI telemetry AgentId override to the explicit UIPATH_AGENT_ID env var instead of UiPathConfig.agent_id (which falls back to project_id). Prevents silent regression of non-eval CLI contexts that set UIPATH_PROJECT_ID — those continue to tag AgentId from PROJECT_KEY as before. Refs: AE-1396
1 parent bdf0ee3 commit db26ce2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/uipath/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires-python = ">=3.11"
77
dependencies = [
88
"uipath-core>=0.5.8, <0.6.0",
99
"uipath-runtime>=0.10.1, <0.11.0",
10-
"uipath-platform>=0.1.42, <0.2.0",
10+
"uipath-platform>=0.1.43, <0.2.0",
1111
"click>=8.3.1",
1212
"httpx>=0.28.1",
1313
"pyjwt>=2.10.1",

packages/uipath/src/uipath/_cli/_telemetry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _enrich_properties(self, properties: Dict[str, Any]) -> None:
4141
Args:
4242
properties: The properties dictionary to enrich.
4343
"""
44-
agent_id = UiPathConfig.agent_id or _get_project_key()
44+
agent_id = os.getenv("UIPATH_AGENT_ID") or _get_project_key()
4545
if agent_id:
4646
properties["AgentId"] = agent_id
4747

0 commit comments

Comments
 (0)