Skip to content

feat(api): add image edit markup overlays - #4210

Merged
jbeckwith-oai merged 1 commit into
mainfrom
castiron/promotions/pr-382
Oct 29, 2026
Merged

jbeckwith-oai merged 1 commit into
mainfrom
castiron/promotions/pr-382

Conversation

@jbeckwith-oai

@jbeckwith-oai jbeckwith-oai commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds an optional markup image to guide image edits.

Changes

  • Provide a transparent PNG markup overlay when editing an image.
  • Document that markup must match the first image dimensions and cannot be combined with a mask.
  • Keep the Realtime example responsive to Ctrl-C while waiting for input, without crashing during interpreter shutdown.

On POSIX, the example polls stdin on the main thread instead of using a background reader. Partial input, Unicode and subsequent lines are preserved. Windows retains builtin input.

Validation: all eight example input/shutdown scenarios pass under both Pydantic versions, plus180 repeated signal cases. Tests reject fatal interpreter errors and invalid exit statuses; the original two-second deadline is unchanged. The previous daemon-reader implementation fails the strengthened tests. Formatting and lint/type checks passed. Public CI is rerunning on this updated candidate.

@jbeckwith-oai
jbeckwith-oai requested a review from a team as a code owner October 29, 2026 14:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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-10-29T16:55:51.211220Z e386c28 New commits
🔒 Security Review ✅ Completed 2026-10-29T16:56:12.313043Z e386c28 New commits
ℹ️ 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.

@markstuart-oai markstuart-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. markup follows the existing file-preserving copy, extraction and multipart paths in all sync/async edit overloads. Existing mask and omission behavior remain intact. The new 24-case test checks actual multipart fields, content, filename and MIME type, caller-owned streams, error handling and captured logs across both response modes. It stays separate from generated tests.

Full diff and independent source review found no actionable issues. The generated inventory matches. The optional field adds no new processing layer or model gate; no file crosses 1,000 lines. These synthetic tests do not establish live PNG validity or mask/markup exclusivity.

Hosted CI is not green: Python 3.10 failed in test_realtime_example_keepalive.py::test_interactive_realtime_example_remains_responsive_at_input[sigint], timing out while waiting two seconds for process exit. That test is outside this diff. The job reported 20,157 passed, 218 skipped and this one failure. This approval does not establish a passing CI run.

Source-only review: no local SDK tests, builds or generation ran.

Reviewed head: 33c9fa7ed8400c92176e2b7b36b4fccd4a570fc6; base: f552fcffcf774520e946121704b5fbbf7ba986e8.

@jbeckwith-oai
jbeckwith-oai force-pushed the castiron/promotions/pr-382 branch from 52329ca to 673588a Compare October 29, 2026 16:25
Comment thread examples/realtime/realtime.py Fixed
Castiron-Internal-PR: openai/openai-python-internal#382
Castiron-Source-SHA: 1d6715c1337133d53127ad3465d881c9e1b9e64b
Castiron-Public-Base-SHA: f552fcf
@jbeckwith-oai
jbeckwith-oai force-pushed the castiron/promotions/pr-382 branch from 673588a to e386c28 Compare October 29, 2026 16:54
@jbeckwith-oai
jbeckwith-oai added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 72c656d Oct 29, 2026
26 checks passed
@jbeckwith-oai
jbeckwith-oai deleted the castiron/promotions/pr-382 branch October 29, 2026 17:07
@openai-sdks openai-sdks Bot mentioned this pull request Oct 29, 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.

3 participants