Python: preserve Responses replay metadata across AG-UI continuations - #3
Closed
eavanvalkenburg wants to merge 20 commits into
Closed
Python: preserve Responses replay metadata across AG-UI continuations#3eavanvalkenburg wants to merge 20 commits into
eavanvalkenburg wants to merge 20 commits into
Conversation
…soft#7842) * Initial plan * Honor cancellation before response completion Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com>
* Initial plan * Use Responses API for hosted web search Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com> * .NET: Use OpenAI SDK for AG-UI web search Copilot-Session: 2b346dcb-1702-4296-bf22-b434b73fd26c * .NET: Keep AG-UI web search history local Copilot-Session: 2b346dcb-1702-4296-bf22-b434b73fd26c --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com> Copilot-Session: 2b346dcb-1702-4296-bf22-b434b73fd26c
* chore: annotate validated attachment paths Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 104d342a-090c-4feb-9bb3-662915b9c390 * fix: update attachment handling Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 104d342a-090c-4feb-9bb3-662915b9c390 * chore: preserve analysis annotations Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 104d342a-090c-4feb-9bb3-662915b9c390 * fix: use attachment upload descriptor Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 104d342a-090c-4feb-9bb3-662915b9c390 * chore: correct analysis annotations Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 104d342a-090c-4feb-9bb3-662915b9c390 --------- Copilot-Session: 104d342a-090c-4feb-9bb3-662915b9c390
* Bump Aspire.Hosting from 13.1.0 to 13.5.2 --- updated-dependencies: - dependency-name: Aspire.Hosting dependency-version: 13.5.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix Aspire 13.5.2 restore/build regressions Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com> * Use Aspire AppHost SDK 13.5.2 with temporary _AspireUseSdkPickBestRid workaround Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com> * Reuse AspireAppHostSdkVersion for Aspire packages Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com>
* Suppress false positive Zip Slip alert Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b8c7b4b0-21bf-4b63-ba64-75e5c4b7ab34 * Fix FeatureDeclaration analyzer warning Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b8c7b4b0-21bf-4b63-ba64-75e5c4b7ab34 * Remove unnecessary CodeAnalysis import Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b8c7b4b0-21bf-4b63-ba64-75e5c4b7ab34 * Restore FeatureRegistry test imports Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b8c7b4b0-21bf-4b63-ba64-75e5c4b7ab34 * Suppress platform-specific unused import warning Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b8c7b4b0-21bf-4b63-ba64-75e5c4b7ab34 --------- Copilot-Session: b8c7b4b0-21bf-4b63-ba64-75e5c4b7ab34
…soft#7850) The Anthropic and Mistral chat clients looked their finish reason maps up without a default, so any provider value the map did not cover was reported to the caller as no finish reason at all. Anthropic's model_context_window_exceeded and Mistral's error both disappeared this way. Fall back to the raw provider value instead, the way the other provider clients have since microsoft#7105. Every already-mapped value keeps mapping as before, and an absent reason stays absent. Fixes microsoft#7849
…les. (microsoft#7792) * added Mem0Sharp integration for in-memory storage in agent samples. microsoft#7467 * formatting fix * Remove Mem0Sharp integration from agent memory samples and update README links * Fix: Add missing newline at end of solution file * Fix: Add missing newline at end of solution file
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 42a18a81-57d5-4912-8dbd-f1a48db57a45
…osoft#7864) * Move CodeQL suppression above SendAsync Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b1089839-7a12-4a45-b492-1a984e702bd5 * Add CodeQL suppression for DevUI trailing-slash redirect Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b1089839-7a12-4a45-b492-1a984e702bd5 --------- Copilot-Session: b1089839-7a12-4a45-b492-1a984e702bd5
…osoft#7878) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com>
* .NET: Simplify A2A function tool samples Split whole-agent and per-skill function tool concepts into focused samples. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 31ff03bb-ffc6-43ba-be4a-7b235c3c7da9 * .NET: Use Foundry in A2A tool samples Replace the Azure OpenAI setup with the canonical Foundry project client in both A2A samples. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 31ff03bb-ffc6-43ba-be4a-7b235c3c7da9 --------- Co-authored-by: SergeyMenshykh <SergeMenshikh@outlook.com> Copilot-Session: 31ff03bb-ffc6-43ba-be4a-7b235c3c7da9
* ci: adds dependabot cooldown for python and dotnet Signed-off-by: Vincent Biret <vibiret@microsoft.com> * ci: adds cooldown for pip as well --------- Signed-off-by: Vincent Biret <vibiret@microsoft.com>
….6 (microsoft#7886) --- updated-dependencies: - dependency-name: Azure.AI.AgentServer.Invocations dependency-version: 1.0.0-beta.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…soft#7869) * docs: updates the contributing information for CFS users * chore: typos fix Co-authored-by: westey <164392973+westey-m@users.noreply.github.com> * chore: typo fix Co-authored-by: westey <164392973+westey-m@users.noreply.github.com> --------- Co-authored-by: westey <164392973+westey-m@users.noreply.github.com>
…oft#7888) --- updated-dependencies: - dependency-name: CommunityToolkit.VectorData.InMemory dependency-version: 1.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(python): separate provider input from UI snapshot in AG-UI service-session mode * fix(python): separate provider input from UI snapshot in AG-UI service-session mode * fix: use identity matching for service-session split and snapshot reconstruction * fix(python): validate AG-UI service-session continuations Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * test(python): cover explicit hosted conversation history Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * test(python): cover AG-UI service storage boundary Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * test(python): clarify hosted-agent test wiring Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * test(python): cover AF primitive conversation history Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(python): separate AG-UI thread and provider sessions Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(python): make AG-UI service mapping explicit Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: eavanvalkenburg <github@vanvalkenburg.eu> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: Eduard van Valkenburg <eavanvalkenburg@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
eavanvalkenburg
had a problem deploying
to
github-app-auth
August 27, 2026 09:44 — with
GitHub Actions
Failure
eavanvalkenburg
had a problem deploying
to
github-app-auth
August 27, 2026 09:44 — with
GitHub Actions
Failure
eavanvalkenburg
had a problem deploying
to
github-app-auth
August 27, 2026 09:45 — with
GitHub Actions
Error
Owner
Author
|
Closed because this draft was intended for the upstream microsoft/agent-framework repository. |
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
AG-UI supports both stateless snapshot replay and provider-managed conversation continuation. These modes must not leak into each other: stateless runs should replay complete message history without restoring a provider response ID, while service-session runs should send only the incremental turn and restore private provider continuation state.
A cross-provider multi-turn matrix also found that real Responses
output_text.logprobswere parsed into response-level metadata but were not retained on assistant content for direct replay. This loses provider-supplied data and prevents conformant replay when the receiving endpoint requires that field.Description & Review Guide
What are the major changes?
use_service_session=Truewith an explicitstore=Falseusing a clear configuration error.output_text.logprobson parsed content and mirror them during direct Responses replay without fabricating empty values.What is the impact of these changes?
What do you want reviewers to focus on?
Related Issue
Fixes microsoft#7905
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.