Skip to content

fix: avoid auto response for unknown realtime tools (ref: #3287)#3366

Merged
seratch merged 1 commit into
mainfrom
fix/realtime-unknown-tool-no-auto-response
May 11, 2026
Merged

fix: avoid auto response for unknown realtime tools (ref: #3287)#3366
seratch merged 1 commit into
mainfrom
fix/realtime-unknown-tool-no-auto-response

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented May 11, 2026

This pull request fixes unknown Realtime tool handling so the SDK completes the model-visible tool call with an error output without automatically triggering a follow-up model response.

Previously, the unknown-tool branch sent RealtimeModelSendToolOutput(start_response=True), which caused the Realtime model backend to receive a response.create immediately after the error output. That made the assistant respond even when the application may want to decide whether to continue, recover tool configuration, or stop the turn. Known tools, approval rejections, and handoffs still trigger follow-up responses as before.

context: #3287 (comment)

@seratch seratch added this to the 0.17.x milestone May 11, 2026
@github-actions github-actions Bot added bug Something isn't working feature:realtime labels May 11, 2026
@seratch
Copy link
Copy Markdown
Member Author

seratch commented May 11, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ 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 8715a05 into main May 11, 2026
10 checks passed
@seratch seratch deleted the fix/realtime-unknown-tool-no-auto-response branch May 11, 2026 22:28
@github-actions github-actions Bot mentioned this pull request May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:realtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant