Skip to content

fix(agents-openai): omit empty computer safety checks on replay#1129

Merged
seratch merged 1 commit intomainfrom
fix/computer-safety-check-replay
Mar 25, 2026
Merged

fix(agents-openai): omit empty computer safety checks on replay#1129
seratch merged 1 commit intomainfrom
fix/computer-safety-check-replay

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Mar 25, 2026

This pull request fixes a Responses API replay bug for computer tool turns. Replayed computer_call items were always sending empty pending_safety_checks, which caused follow-up computer tool requests to fail with 400 pending_safety_checks is not supported for the "computer" tool.

The change updates replay input reconstruction to omit empty pending_safety_checks and empty acknowledged_safety_checks instead of forcing empty arrays into the payload. It also adds regression coverage for empty computer safety-check fields and includes a patch changeset for @openai/agents-openai. This keeps non-empty safety-check data intact while matching the live API behavior required for computer-use and computer-use-hitl flows.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 25, 2026

🦋 Changeset detected

Latest commit: ba392a4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@openai/agents-openai Patch
@openai/agents Patch
@openai/agents-core Patch
@openai/agents-realtime Patch
@openai/agents-extensions Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

NODE
}

load_auto_input() {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for stabler executions

@github-actions github-actions bot added this to the 0.8.x milestone Mar 25, 2026
@seratch seratch merged commit 4e00b3c into main Mar 25, 2026
6 checks passed
@seratch seratch deleted the fix/computer-safety-check-replay branch March 25, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant