feat: add phase lifecycle to UiPathRuntimeStateEvent#87
Merged
cristipufu merged 1 commit intomainfrom Feb 16, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds lifecycle phase tracking to runtime state events, enabling consumers to distinguish between node start, update, and completion phases. The feature is backward compatible with a sensible default value.
Changes:
- Added
UiPathRuntimeStatePhaseenum with three lifecycle phases:started,updated,completed - Added
phasefield toUiPathRuntimeStateEventwith default valueUPDATEDfor backward compatibility - Comprehensive test coverage including default behavior, explicit phase setting, and full lifecycle simulation
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/uipath/runtime/events/base.py | Defines new UiPathRuntimeStatePhase enum and exports it |
| src/uipath/runtime/events/state.py | Adds phase field to UiPathRuntimeStateEvent with backward-compatible default |
| src/uipath/runtime/events/init.py | Exports new UiPathRuntimeStatePhase enum |
| tests/test_events.py | Comprehensive test coverage for phase defaults, explicit setting, and lifecycle simulation |
| pyproject.toml | Version bump to 0.8.6 |
| uv.lock | Lockfile update for version 0.8.6 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Introduce UiPathRuntimeStatePhase enum (started, updated, completed, faulted) to track node lifecycle in state events. Defaults to "updated" for backward compatibility. Bump version to 0.8.6. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
46220d1 to
ebe845a
Compare
radu-mocanu
approved these changes
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
UiPathRuntimeStatePhaseenum (started,updated,completed,faulted) to track node lifecycle stages in state eventsphasefield toUiPathRuntimeStateEvent, defaulting toupdatedfor backward compatibilityTest plan
test_state_event_phase_defaults_to_updated— verifies backward compat defaulttest_state_event_phase_can_be_set_explicitly— verifies all enum valuestest_runtime_stream_emits_phase_lifecycle— full runtime stream with started/updated/completed per nodetest_runtime_stream_emits_faulted_phase_on_error— node faults mid-stream, verifies started→faulted and early termination🤖 Generated with Claude Code