Skip to content

[openai-agents-typescript] breaking: remove the stateful MCP session watch gate before 2.0 - #587

Merged
campoy merged 1 commit into
mainfrom
breaking/openai-agents-ts-remove-session-watch-gate
Nov 16, 2026
Merged

campoy merged 1 commit into
mainfrom
breaking/openai-agents-ts-remove-session-watch-gate

Conversation

@campoy

@campoy campoy commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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-watch patch 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 as stateful-mcp-caller-cancel.json. Why? A history with a marker and no matching patched() 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: 0 don't replay on 2.0. For example, a run whose caller cancelled operations on two servers, one of them with scheduleToStartTimeout: 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 main build 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

  1. No issue.

  2. How was this tested:

  3. Any docs updates needed? The README changes are here.

@campoy campoy changed the title Breaking: openai-agents (TypeScript): remove the stateful MCP session watch gate before 2.0 [openai-agents-typescript] breaking: remove the stateful MCP session watch gate before 2.0 Nov 16, 2026
Base automatically changed from replay/major-scoped-histories to main November 16, 2026 18:15
… 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
campoy force-pushed the breaking/openai-agents-ts-remove-session-watch-gate branch from 73d60ae to ea46c11 Compare November 16, 2026 18:23
@campoy
campoy marked this pull request as ready for review November 16, 2026 18:41
@campoy
campoy requested a review from a team as a code owner November 16, 2026 18:41
@campoy
campoy merged commit f8d44bd into main Nov 16, 2026
29 checks passed
@campoy
campoy deleted the breaking/openai-agents-ts-remove-session-watch-gate branch November 16, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants