Skip to content

fix: isolate nested agent-tool resume cache by RunState scope#2501

Merged
seratch merged 1 commit intomainfrom
fix/runstate-multi-resume-scope
Feb 17, 2026
Merged

fix: isolate nested agent-tool resume cache by RunState scope#2501
seratch merged 1 commit intomainfrom
fix/runstate-multi-resume-scope

Conversation

@seratch
Copy link
Member

@seratch seratch commented Feb 17, 2026

This pull request fixes cross-state interference when nested agent-tool interruption state is restored from JSON multiple times in the same process. The agent-tool pending result cache is now scoped per restored RunState, and the scope is propagated through resume execution paths and ToolContext creation so cache lookup/consume/drop always stays within the correct run-state boundary. It also updates RunState nested-state serialization/deserialization to use the scoped cache consistently, and extends regression coverage to verify two independently restored states from the same payload can both be approved and resumed successfully.

@seratch seratch added this to the 0.9.x milestone Feb 17, 2026
@github-actions github-actions bot added bug Something isn't working feature:core labels Feb 17, 2026
@seratch seratch merged commit 335b7e6 into main Feb 17, 2026
9 checks passed
@seratch seratch deleted the fix/runstate-multi-resume-scope branch February 17, 2026 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant