microsoft / microsoft/agent-framework

Python: Python : checkpoint restore +pending request deserialization failure when hosting workflow as agent with ResponsesHostserver in foundry

Open
#7,618 2 comments 0 reactions 1 assignee View on GitHub

@TaoChenOSU is already working on this.

Since Aug 11, 2026.

hosting python reproduced
Dominant language
Python
Stars
13.6k
Forks
2.3k
Avg merge
2d 45m
Merged PRs (30d)
358

Description

## Scenario

This occurs when a workflow is hosted as an agent via ResponseHostServer (Response protocol), aand the workflow is resumed across requests using `previous_response_id`

## when it happened
- During the hosted-agent execution (work-as-agent ), sfter a prior turn produced `request_info` and pending requests.
- on the next `/responses` call with `previous_response_id ` + `function_call_output`, the server restored checkpoint state and failed on deserializing a pending request type.

## observed behaviour

- checkpoint decode warning:
`checkpoint deserialization blocked for type 'agent_framework_orchestrations._handoff:HandoffAgentUserRequest'`
checkpoint deserialization blocked for type agent_framework_orchestrations._magentic:MagenticPlanReviewRequest

- Restore proceeded from an older/other checkpoint state
- Follow-up response was rejected
- `ValueError :Response provided for unknown request Id :

## Expected
When hosting workflow as agent:
-pending request checkpoint state should restore reliably across turns

Package versions:
agent-framework-core==1.13.0
agent-framework-foundry-hosting==1.0.0.b260730

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.