You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Go regression coverage for checkpointed workflow-as-agent sessions so we keep parity with the .NET guidance around stable hosted-agent identities.
The new workflow/agentworkflow tests prove three cases:
Reconstructing the outer workflow agent resumes correctly when the hosted inner agent keeps the same agent.Config.ID and agent.Config.Name.
Reconstructing with a fresh random inner agent ID fails checkpoint compatibility.
Reconstructing with the same inner agent ID but a different name also fails compatibility, because the hosted executor identity includes both values.
The updated workflow samples now document that requirement and assign stable IDs in the workflow-as-agent examples so checkpointed sessions remain resumable when the workflow is rebuilt.
go test ./workflow/agentworkflow -run 'TestNew_(WorkflowAgentSession|SerializedSessionResumes)'
go test ./examples/03-workflows/checkpoint/checkpoint_and_rehydrate ./examples/03-workflows/agents/workflow_as_an_agent ./examples/03-workflows/observability/workflow_as_an_agent
The upstream .NET change was test/sample guidance rather than a runtime code change, and the Go port follows the same scope: regression coverage plus sample guidance, with no exported API changes.
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch copilot/dotnet-port-fixes-stable-agent-ids-7a2dda3966258588.
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Summary
Add Go regression coverage for checkpointed workflow-as-agent sessions so we keep parity with the .NET guidance around stable hosted-agent identities.
The new
workflow/agentworkflowtests prove three cases:agent.Config.IDandagent.Config.Name.The updated workflow samples now document that requirement and assign stable IDs in the workflow-as-agent examples so checkpointed sessions remain resumable when the workflow is rebuilt.
Ported .NET PRs
Upstream commit inspected:
6a3d5352042959eb276dc52e1e7f69a6fe5e4e8a.Breaking Changes
No.
Tests and Examples
go test ./workflow/agentworkflow -run 'TestNew_(WorkflowAgentSession|SerializedSessionResumes)'go test ./examples/03-workflows/checkpoint/checkpoint_and_rehydrate ./examples/03-workflows/agents/workflow_as_an_agent ./examples/03-workflows/observability/workflow_as_an_agentexamples/03-workflows/checkpoint/checkpoint_and_rehydrate/main.goexamples/03-workflows/agents/workflow_as_an_agent/main.goexamples/03-workflows/observability/workflow_as_an_agent/main.goNotes
The upstream .NET change was test/sample guidance rather than a runtime code change, and the Go port follows the same scope: regression coverage plus sample guidance, with no exported API changes.
Note
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch
copilot/dotnet-port-fixes-stable-agent-ids-7a2dda3966258588.Click here to create the pull request
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch preview (295 of 295 lines)