Skip to content

test(realtime): cover typed reference input serialization - #4223

Merged
markstuart-oai merged 2 commits into
mainfrom
markstuart/realtime-reference-input-proof
Nov 2, 2026
Merged

markstuart-oai merged 2 commits into
mainfrom
markstuart/realtime-reference-input-proof

Conversation

@markstuart-oai

Copy link
Copy Markdown
Contributor

Cover mixed existing-item references and new message inputs through synchronous and asynchronous Realtime response.create() and send(). Assert the complete encoded request, including the event ID, reference fields, item order, Unicode content and response settings. The explicitly typed fixture also checks the public input types at all four call sites.

Validation: four local WebSocket peer cases against the qualified 3.42.1 wheel; focused type, Ruff format/lint and diff checks pass.

@markstuart-oai
markstuart-oai requested a review from a team as a code owner November 1, 2026 23:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T00:09:48.540282Z 4680764 Manual request
🔒 Security Review ✅ Completed 2026-11-02T00:10:08.443094Z 4680764 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed d9ff129 with an independent static review. The four public-path payload assertions are appropriate, but the new async case currently fails hosted CI and needs explicit peer-completion synchronization before teardown. No candidate code or tests executed locally. Python 3.10 CI remains in progress.

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved after static re-review of 4680764. The new threading.Event is set only after the peer validates the complete wire payload, and both sync and async paths wait for it inside the connection context. asyncio.to_thread preserves event-loop progress, and the five-second bound keeps failures finite. This addresses my prior teardown finding without weakening the payload assertions. Independent second review found no additional issues. Hosted CI is still running on this commit, including Python 3.10/3.14; no candidate code or local tests executed.

@markstuart-oai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 4680764d31

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 4680764d31

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@markstuart-oai
markstuart-oai added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 92642d3 Nov 2, 2026
26 checks passed
@markstuart-oai
markstuart-oai deleted the markstuart/realtime-reference-input-proof branch November 2, 2026 03:13
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.

3 participants