Python: scope executor activity IDs to workflow runs - #8549
Open
Naveen Chatlapalli (1aifanatic) wants to merge 2 commits into
Open
Naveen Chatlapalli (1aifanatic) wants to merge 2 commits into
Naveen Chatlapalli (1aifanatic) wants to merge 2 commits into
Conversation
Naveen Chatlapalli (1aifanatic)
deployed
to
github-app-auth
September 19, 2026 21:41 — with
GitHub Actions
Active
Naveen Chatlapalli (1aifanatic)
deployed
to
github-app-auth
September 19, 2026 21:41 — with
GitHub Actions
Active
Naveen Chatlapalli (1aifanatic)
had a problem deploying
to
github-app-auth
September 19, 2026 21:41 — with
GitHub Actions
Error
Naveen Chatlapalli (1aifanatic)
deployed
to
github-app-auth
September 19, 2026 21:41 — with
GitHub Actions
Active
Naveen Chatlapalli (1aifanatic)
marked this pull request as ready for review
September 19, 2026 21:41
Naveen Chatlapalli (1aifanatic)
requested review from
SergeyMenshykh,
Tao Chen (TaoChenOSU),
Eduard van Valkenburg (eavanvalkenburg),
Giles Odigwe (giles17),
Jose Alvarez (jpalvarezl),
Evan Mattson (moonbox3),
Roger Barreto (rogerbarreto) and
westey (westey-m)
as code owners
September 19, 2026 21:41
Copilot started reviewing on behalf of
Naveen Chatlapalli (1aifanatic)
September 19, 2026 21:41
View session
Naveen Chatlapalli (1aifanatic)
deployed
to
github-app-auth
September 19, 2026 21:41 — with
GitHub Actions
Active
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The delimiter-based ID format permits collisions between unrestricted run and executor IDs.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
What changed in this PR
Scopes executor activity IDs to workflow runs to prevent cross-run snapshot overwrites.
Changes:
- Prefixes activity IDs with the run ID.
- Adds completion and failure regression coverage across runs and executors.
| File | Description |
|---|---|
python/packages/ag-ui/agent_framework_ag_ui/_workflow_run.py |
Adds run-scoped executor activity IDs. |
python/packages/ag-ui/tests/ag_ui/test_workflow_run.py |
Tests activity identity and run separation. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Naveen Chatlapalli (1aifanatic)
deployed
to
github-app-auth
September 19, 2026 21:46 — with
GitHub Actions
Active
Naveen Chatlapalli (1aifanatic)
deployed
to
github-app-auth
September 19, 2026 21:46 — with
GitHub Actions
Active
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.

Motivation & Context
Executor activity snapshots currently reuse IDs such as
executor:researcheracross workflow runs. A UI or message store keyed by message ID can overwrite the activity from an earlier turn.Description & Review Guide
content.executor_id; no public API or dependency is added.Related Issue
Fixes #7338. Checked the issue discussion, cross-references, and open PRs; no competing implementation was found. The related #7429 concerns lifecycle/thread correlation and explicitly excludes activity message IDs.
Contribution Checklist