Skip to content

fix: forward originator to Codex Apps MCP#31481

Draft
raquel-openai wants to merge 1 commit into
mainfrom
codex/sites-desktop-originator
Draft

fix: forward originator to Codex Apps MCP#31481
raquel-openai wants to merge 1 commit into
mainfrom
codex/sites-desktop-originator

Conversation

@raquel-openai

Copy link
Copy Markdown

Summary

  • Forward Codexs canonical originator header on ChatGPT-hosted Apps and plugin-runtime MCP requests.
  • Preserve the configured X-OpenAI-Product-Sku header.
  • Cover originator-only and originator-plus-SKU configurations.

Why

Sites project creation is logged downstream of Apps MCP. Production validation found CODEX_UNKNOWN_DEFAULT project-created threads that matched codex_surface=desktop_app and originator=Codex Desktop in fact_codex_cli (query).

The hosted Apps MCP configuration forwarded the product SKU but not Codexs canonical originator, so codex-backend could not derive CODEX_DESKTOP_APP for those tool calls.

Validation

  • just fmt
  • CARGO_HOME=/private/tmp/codex-cargo-home CARGO_TARGET_DIR=/private/tmp/codex-target just test -p codex-mcp (106 passed)
  • CARGO_HOME=/private/tmp/codex-cargo-home CARGO_TARGET_DIR=/private/tmp/codex-target just fix -p codex-mcp

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@raquel-openai

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Jul 7, 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.

1 participant