Skip to content

fix: categorize missing HITL index as deployment - #1839

Open
radu-mocanu wants to merge 1 commit into
mainfrom
fix/context-index-trigger-categorization
Open

fix: categorize missing HITL index as deployment#1839
radu-mocanu wants to merge 1 commit into
mainfrom
fix/context-index-trigger-categorization

Conversation

@radu-mocanu

Copy link
Copy Markdown
Collaborator

Summary

  • categorize missing Context Grounding indexes during HITL trigger creation as deployment errors
  • preserve the missing index detail and original exception chain

Why

ContextGroundingIndexNotFoundError was being caught by the generic HITL error wrapper, losing its deployment semantics.

Copilot AI review requested due to automatic review settings August 3, 2026 00:01
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Aug 3, 2026
@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2026

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 updates the HITL resume-trigger creation flow in uipath-platform so that a missing Context Grounding index is surfaced as a deployment error (rather than being swallowed by the generic HITL error wrapper), while preserving the original exception as the cause.

Changes:

  • Add a dedicated ContextGroundingIndexNotFoundError handler in UiPathResumeTriggerCreator.create_trigger() that raises UiPathFaultedTriggerError with ErrorCategory.DEPLOYMENT and preserves exception chaining.
  • Add a regression test asserting the error category/message/detail and preserved __cause__.
  • Bump uipath-platform version from 0.2.15 to 0.2.16 (pyproject + lockfiles).

Reviewed changes

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

Show a summary per file
File Description
packages/uipath/uv.lock Updates locked editable dependency version for uipath-platform to 0.2.16.
packages/uipath-platform/uv.lock Updates the platform package lock entry to 0.2.16.
packages/uipath-platform/tests/services/test_hitl.py Adds coverage to ensure missing context grounding index is categorized as a deployment error and preserves __cause__.
packages/uipath-platform/src/uipath/platform/resume_triggers/_protocol.py Adds targeted exception handling to map missing context grounding index to deployment category.
packages/uipath-platform/pyproject.toml Bumps uipath-platform version to 0.2.16.

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

Comment on lines +548 to +552
except ContextGroundingIndexNotFoundError as e:
raise UiPathFaultedTriggerError(
ErrorCategory.DEPLOYMENT,
"Context grounding index not found",
str(e),
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.

2 participants