Skip to content

feat(platform): read the conversation id from the runtime config (0.2.39 line) - #1986

Merged
dianagrecu-uipath merged 1 commit into
release/uipath-platform-0.2.39from
fix/platform-conversation-id-0.2.39-line
Nov 11, 2026
Merged

dianagrecu-uipath merged 1 commit into
release/uipath-platform-0.2.39from
fix/platform-conversation-id-0.2.39-line

Conversation

@dianagrecu-uipath

@dianagrecu-uipath dianagrecu-uipath commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What changed?

Ports #1983 to the uipath-platform 0.2.39 line and publishes it as 0.2.39.post1.

UiPathConfig gets a new conversation_id property. It returns the conversation id of a conversational run, or None for any other run. The id is read from the fpsProperties of the runtime config file (uipath.json, or the path in UIPATH_CONFIG_PATH), key conversationalService.conversationId. The config file is now parsed once into a cached _config_data, which the existing internalArguments reads also use, and reset() clears it.

This lets an LLM client hotfix on this line read the conversation id, the same way licensing_context is read.

  • This PR targets release/uipath-platform-0.2.39, which points at 05c40202, the commit 0.2.39 was built from.
  • The code and tests are a cherry-pick of feat(platform): read the conversation id from the runtime config #1983's squashed commit (ced589c3) and identical to it. Only the version lines differ: pyproject.toml and the uipath-platform entry in packages/uipath-platform/uv.lock and packages/uipath/uv.lock, from 0.2.39 to 0.2.39.post1.
  • 0.2.39.post1 is a post-release because later patches of this line already exist.

How has this been tested?

  • pytest in packages/uipath-platform: 1809 passed, 11 skipped (they need credentials), including the 13 new TestConversationId tests.
  • ruff check, ruff format --check and mypy src tests are clean.
  • uv lock --check passes for packages/uipath-platform and packages/uipath.

Are there any breaking changes?

  • None. A config file whose top level is valid JSON but not an object now reads as empty instead of raising AttributeError.

Copilot AI balanced review requested due to automatic review settings November 10, 2026 12:29
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Nov 10, 2026

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.

🟢 Approval recommended

No active review issues are reported for the runtime conversation ID backport.

No open issues 🎉

What changed in this PR

Backports runtime conversation ID access to the uipath-platform 0.2.39 release line as 0.2.39.post1, allowing LLM clients to read it through UiPathConfig.

Changes:

  • Adds conversation_id, read from runtime configuration fpsProperties.
  • Shares a cached configuration file between conversation ID and internal argument reads, with cache invalidation through reset().
  • Adds tests for configuration handling and updates package and lockfile versions.
File Description
packages/​uipath/​uv.lock Updates the platform dependency version to 0.2.39.post1.
packages/​uipath-platform/​uv.lock Aligns the platform lockfile version with the post-release.
packages/​uipath-platform/​tests/​common/​test_config_env_vars.py Tests conversation ID reads, invalid inputs, path overrides, and caching.
packages/​uipath-platform/​src/​uipath/​platform/​common/​_config.py Adds conversation ID access and shared configuration caching.
packages/​uipath-platform/​pyproject.toml Sets the package version to 0.2.39.post1.

Review effort: Balanced

@dianagrecu-uipath

Copy link
Copy Markdown
Contributor Author

Closing: the hotfix covers only the 0.2.33 (#1984) and 0.2.37 (#1985) lines.

@dianagrecu-uipath
dianagrecu-uipath deleted the fix/platform-conversation-id-0.2.39-line branch November 10, 2026 12:35
@dianagrecu-uipath
dianagrecu-uipath restored the fix/platform-conversation-id-0.2.39-line branch November 11, 2026 13:02
@sonarqubecloud

Copy link
Copy Markdown

@dianagrecu-uipath
dianagrecu-uipath merged commit bfa43da into release/uipath-platform-0.2.39 Nov 11, 2026
181 checks passed
@dianagrecu-uipath
dianagrecu-uipath deleted the fix/platform-conversation-id-0.2.39-line branch November 11, 2026 13:22
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.

3 participants