Skip to content

feat(tasks): [1/2] accept task_source_metadata in create_quickform_async [ACTN-11909] - #1948

Draft
Sahil-Wakode wants to merge 4 commits into
mainfrom
feat/quickform-task-source-metadata
Draft

Sahil-Wakode wants to merge 4 commits into
mainfrom
feat/quickform-task-source-metadata

Conversation

@Sahil-Wakode

@Sahil-Wakode Sahil-Wakode commented Oct 19, 2026 •

Copy link
Copy Markdown

What this PR does

Lets create_quickform_async take task_source_metadata, the same way create_async already does.

task_source_metadata is a dict of extra keys. They are added to the task's taskSource.taskSourceMetadata, next to the keys the SDK already sets (InstanceId, FolderKey, JobKey, ProcessKey).

Why

Action Center now writes task events (created, assigned, completed) to the trace. To show them under the right step, it needs to know which span the task belongs to. The code that creates the task sends that as ParentSpanId in task_source_metadata.

Agent escalations create two kinds of tasks: app tasks (create_async) and quick form tasks (create_quickform_async). App tasks could already send it; quick form tasks couldn't. This fixes that. The escalation tool change that sends the span id is in uipath-langchain-python (part 2).

Changes

  • _tasks_service.py: create_quickform_async and _create_quickform_spec take task_source_metadata and pass it to _apply_task_source. The sync create_quickform is unchanged.
  • test_actions_service.py: a test that the extra key is sent and InstanceId is still there.
  • uipath-platform version bumped to 0.2.42.

Testing

  • All 33 tests in test_actions_service.py pass. The new test fails without this change.
  • ruff format and ruff check pass.

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Oct 19, 2026
@Sahil-Wakode Sahil-Wakode changed the title feat(tasks): accept task_source_metadata when creating quick form tasks [ACTN-11909] feat(tasks): [1/2] accept task_source_metadata when creating quick form tasks [ACTN-11909] Oct 19, 2026
@github-actions

Copy link
Copy Markdown

🚨 Heads up: uipath-langchain cross-tests are FAILING 🚨

Your changes may break the uipath-langchain-python integration.

⚠️ These checks are NOT enforced by branch protection rules. Please review the failures before merging.

🔍 Inspect the failed run →

@Sahil-Wakode Sahil-Wakode changed the title feat(tasks): [1/2] accept task_source_metadata when creating quick form tasks [ACTN-11909] feat(tasks): [1/2] accept task_source_metadata on every task create method [ACTN-11909] Oct 19, 2026
@Sahil-Wakode Sahil-Wakode changed the title feat(tasks): [1/2] accept task_source_metadata on every task create method [ACTN-11909] feat(tasks): [1/2] accept task_source_metadata in create_quickform_async [ACTN-11909] Oct 22, 2026
@Sahil-Wakode
Sahil-Wakode force-pushed the feat/quickform-task-source-metadata branch from 6b8b66c to ff73d76 Compare October 22, 2026 09:41
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

1 participant