Repository navigation
[openai-agents-typescript] breaking: remove the stateful MCP session watch gate before 2.0 - #587
Merged
Conversation
… watch gate before 2.0 Replay is promised only within a major, and the next OpenAI Agents TypeScript release is 2.0.0. The openai-agents-stateful-mcp-session-watch patch (#373) only kept 1.x runs scheduling operations without a schedule-to-start timeout the old way, so it goes: such operations always watch their session now. The 2.x caller-cancel history is recorded again without the marker, since a marker with no matching patched() call fails replay.
campoy
force-pushed
the
breaking/openai-agents-ts-remove-session-watch-gate
branch
from
November 16, 2026 18:23
73d60ae to
ea46c11
Compare
campoy
marked this pull request as ready for review
November 16, 2026 18:41
xumaple
approved these changes
Nov 16, 2026
campoy
deleted the
breaking/openai-agents-ts-remove-session-watch-gate
branch
November 16, 2026 22:43
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.
What was changed
The next OpenAI Agents TypeScript release is 2.0.0, so its current major is 2, and replay is promised only within a major. The
openai-agents-stateful-mcp-session-watchpatch from #373 only keeps 1.x runs scheduling operations without a schedule-to-start timeout the old way, so let's remove it before 2.0. Such operations always watch their session now. #566 removes the same gate from the Python plugin.The
2.x/caller-cancel history had the patch marker, so I recorded it again without it asstateful-mcp-caller-cancel.json. Why? A history with a marker and no matchingpatched()call fails replay with[TMPRL1100] Non-deprecated patch marker encountered.The README drops the marker note and says which 1.x runs don't replay.
What will you notice? (Breaking)
Some 1.x runs with stateful MCP operations that had
scheduleToStartTimeout: 0don't replay on 2.0. For example, a run whose caller cancelled operations on two servers, one of them withscheduleToStartTimeout: 0, fails with[TMPRL1100]because its follow-up Activities come in another order. Let such runs finish on 1.x Workers before you upgrade, or keep them there with Worker Versioning.A run on a
mainbuild since #373 that scheduled such an operation recorded the marker, so it doesn't replay either. No release wrote that marker.Why?
We decided that replay is promised only within a major, and that a gate that only protects an older major's runs is removed before the next major ships. OpenAI Agents TypeScript's next release is 2.0.0, so this gate goes before it.
Checklist
No issue.
How was this tested:
make lintandmake testfortypescript/openai-agents, in Docker with Node 24: 335 tests passed. Lint shows the same 8 warnings as on [all] replay committed histories only from each plugin's current major #565, in files this PR doesn't touch.2.x/marker history and a history with a renamed Activity on both builds.[TMPRL1100]: the run from [all] replay committed histories only from each plugin's current major #565 and the committed marker history (Non-deprecated patch marker encountered), the 1.x caller-cancel history, and the renamed Activity. The other three 1.x histories replay (a gather with and withoutscheduleToStartTimeout: 0, and a cancel with it), and so does this PR's run.[TMPRL1100], because the old path resumes the follow-ups in the other order.Any docs updates needed? The README changes are here.