Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

test(realtime): cover overlapping tool response creates - #3140

#3140
Merged
seratch merged 1 commit into
openai:mainopenai/openai-agents-python:mainfrom
adityasingh2400:test/realtime-response-create-overlap-2971adityasingh2400/openai-agents-python:test/realtime-response-create-overlap-2971Copy head branch name to clipboard
May 6, 2026
Merged

test(realtime): cover overlapping tool response creates#3140
seratch merged 1 commit into
openai:mainopenai/openai-agents-python:mainfrom
adityasingh2400:test/realtime-response-create-overlap-2971adityasingh2400/openai-agents-python:test/realtime-response-create-overlap-2971Copy head branch name to clipboard

Conversation

@adityasingh2400

Copy link
Copy Markdown
Contributor

Summary

  • Add regression coverage for a raw/manual response.create in flight while a realtime tool output queues its own follow-up response.
  • Assert the tool output sends conversation.item.create immediately but defers the automatic response.create until the active response completes.

Test plan

  • uv run pytest tests/realtime/test_openai_realtime.py -q
  • uv run ruff format tests/realtime/test_openai_realtime.py --check
  • uv run ruff check tests/realtime/test_openai_realtime.py

Closes #2971.

@seratch

seratch commented May 6, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@seratch
seratch merged commit 0370fd3 into openai:main May 6, 2026
10 checks passed
RudrenduPaul pushed a commit to RudrenduPaul/openai-agents-python that referenced this pull request Jun 21, 2026
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.

Realtime Tools cause agent response to cut off

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.