Skip to content

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

Merged
seratch merged 1 commit intoopenai:mainfrom
adityasingh2400:test/realtime-response-create-overlap-2971
May 6, 2026
Merged

test(realtime): cover overlapping tool response creates#3140
seratch merged 1 commit intoopenai:mainfrom
adityasingh2400:test/realtime-response-create-overlap-2971

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
Copy link
Copy Markdown
Member

seratch commented May 6, 2026

@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
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