Repository navigation
Conversation
3 of 7 tasks
ranst91
marked this pull request as ready for review
October 27, 2026 15:54
This branch has not been deployed
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
Client-replayed AG-UI history can differ from stored assistant output. When the contiguous overlap ends at that difference, later user records can be appended a second time despite retaining their original IDs. Separately, a downstream provider failure before the first result/terminal checkpoint loses the received user turn, including attachments.
This PR is ready for review in the contributor fork. Its base branch pins Microsoft main
10a94cf73(full SHA available on the base commit); it does not request an upstream merge or represent published support. Human contributor review and upstream issue agreement remain pending.Description & Review Guide
Five initial regressions failed on the fresh upstream baseline. The full AG-UI unit suite passes (1,787 tests), with existing dependency/deprecation warnings; source Pyright reports zero errors/warnings, and changed-file Ruff/format checks pass. Added regressions cover mixed frontend/native completed/pending history, native approved/declined continuation, fresh/existing failed-media turns, and filename normalization.
Real-provider controls use the configured CopilotKit showcase agent factories through FastAPI, OpenAI Chat Completions (
gpt-5-mini, multimodalgpt-4o-mini), and the same custom JSON implementation ofAGUIThreadSnapshotStorein isolated storage. All four original image/document/audio/video inputs survive downstream rejection with exact bytes/MIME/filename. Approved/declined frontend results, approved/declined native results, and a newly issued native pending approval survive coldThreadSnapshotSession.open/hydrate_events, with unique message IDs. This is adapter snapshot evidence, not FileSessionStore/MessagePack, browser parity, provider-managed session mode, or publication certification.Related Issue
PNI-711. No upstream issue agreement is asserted. Separate protocol/media compatibility work remains Microsoft #9378; this patch preserves filenames in the existing storage format without taking over that work.
AI Assistance
AI assistance details: diagnosis, implementation, regression tests, local provider checks, and this description were prepared by Codex. This fork PR does not attest that the human has reviewed it.
Contribution Checklist
Fork CI limitation: the DevFlow/community team checks fail because
github-tokenis not supplied, and the label job fails becausetoken/opts.authis missing. These are repository automation configuration failures, not test failures. Local validation above applies to headbf82841e737aa617eb05414de4a4a68217fa5e05.