Skip to content

Wire realtime WebRTC native media into Bazel#17145

Merged
aibrahim-oai merged 14 commits intomainfrom
realtime-webrtc-bazel-native
Apr 8, 2026
Merged

Wire realtime WebRTC native media into Bazel#17145
aibrahim-oai merged 14 commits intomainfrom
realtime-webrtc-bazel-native

Conversation

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

  • Builds codex-realtime-webrtc through the normal Bazel Rust macro so native macOS WebRTC sources are included.\n- Shares the macOS -ObjC link flag with Bazel targets that can link libwebrtc.

@aibrahim-oai aibrahim-oai force-pushed the realtime-webrtc-bazel-native branch from a3bd44d to 4fdcf57 Compare April 8, 2026 18:16
@aibrahim-oai aibrahim-oai changed the base branch from realtime-webrtc-tui-media to main April 8, 2026 18:17
@aibrahim-oai aibrahim-oai force-pushed the realtime-webrtc-bazel-native branch from 4fdcf57 to 571829e Compare April 8, 2026 18:19
Remove the codex_bazel native stub and build the realtime WebRTC crate through the normal Bazel crate macro. Share the macOS -ObjC link flag with the Bazel binaries/tests that can pull libwebrtc in.

Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the realtime-webrtc-bazel-native branch from 571829e to c0c3e58 Compare April 8, 2026 18:25
@aibrahim-oai
Copy link
Copy Markdown
Collaborator Author

@codex review this

Add the missing image-generation auth flag in the remaining ToolsConfigParams test helpers, and correct the webrtc-sys patch hunk size so Bazel can apply it.\n\nCo-authored-by: Codex <noreply@openai.com>
Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ecf380b2f5

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

Comment thread MODULE.bazel
Expose the hermetic sysroot patch from the patches package so MODULE.bazel can reference it by label.\n\nCo-authored-by: Codex <noreply@openai.com>
Correct the old-side hunk length; the patch removes a blank line as part of replacing the xcrun-based sysroot lookup.\n\nCo-authored-by: Codex <noreply@openai.com>
Keep patch_args at -p1 and use a/build.rs so Bazel can find the webrtc-sys build script.\n\nCo-authored-by: Codex <noreply@openai.com>
Extend the webrtc-sys build-script patch to use Bazel's CC when querying linker search directories.\n\nCo-authored-by: Codex <noreply@openai.com>
Reduce the webrtc-sys patch to the two tool lookup replacements so it applies cleanly to the Bazel-resolved crate version.\n\nCo-authored-by: Codex <noreply@openai.com>
Teach the patched webrtc-sys build script to pass the hermetic SDK's framework directory to cc-rs when cross-compiling for macOS.\n\nCo-authored-by: Codex <noreply@openai.com>
@aibrahim-oai
Copy link
Copy Markdown
Collaborator Author

@codex review this

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

codex_rust_crate(
name = "cloud-tasks",
crate_name = "codex_cloud_tasks",

P2 Badge Add macOS WebRTC link flags to cloud-tasks Bazel target

This change enables native codex-realtime-webrtc for Bazel, and the new flag comment states any macOS binary/test that can pull libwebrtc must link with -ObjC. codex-cloud-tasks depends on codex-tui, so its Bazel test binaries can transitively link libwebrtc, but this target still omits MACOS_WEBRTC_RUSTC_LINK_FLAGS. That can drop ObjC category symbols and cause runtime WebRTC initialization failures on macOS.

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

aibrahim-oai and others added 3 commits April 8, 2026 12:52
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the realtime-webrtc-bazel-native branch 6 times, most recently from 620826a to 822c066 Compare April 8, 2026 21:30
Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the realtime-webrtc-bazel-native branch from 822c066 to a4df77a Compare April 8, 2026 21:43
@aibrahim-oai
Copy link
Copy Markdown
Collaborator Author

@codex review this

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. What shall we delve into next?

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

@aibrahim-oai aibrahim-oai merged commit 19bd018 into main Apr 8, 2026
25 checks passed
@aibrahim-oai aibrahim-oai deleted the realtime-webrtc-bazel-native branch April 8, 2026 22:15
@github-actions github-actions bot locked and limited conversation to collaborators Apr 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants