raquel-openai
b58952b0fa
fix: forward originator to Codex Apps MCP ( #31481 )
...
## 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](https://kepler.gateway.data-1.internal.api.openai.org/permalink/H_mVoVPqLQ0 )).
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`
2026-07-09 16:51:44 +00:00
..
2026-07-02 10:59:00 -07:00
2026-06-09 12:48:04 -07:00
2026-06-24 13:24:10 -07:00
2026-06-22 13:19:40 -07:00
2026-07-09 12:16:15 -04:00
2026-05-07 15:44:17 -07:00
2026-07-09 12:16:15 -04:00
2026-07-06 10:22:25 -07:00
2026-06-24 18:00:06 -07:00
2026-07-08 13:42:06 -07:00
2026-07-07 19:48:05 +00:00
2026-06-26 17:34:52 -07:00
2026-06-23 00:02:33 +00:00
2026-07-06 12:17:16 -07:00
2026-06-11 18:16:39 -07:00
2026-05-08 04:07:59 +00:00
2026-07-07 13:00:44 -07:00
2026-06-13 21:43:39 -07:00
2026-06-24 13:25:44 -07:00
2026-07-09 02:32:10 +00:00
2026-07-07 17:05:05 -07:00
2026-07-07 01:34:36 +00:00
2026-06-11 18:16:39 -07:00
2026-06-11 18:16:39 -07:00
2026-07-06 15:32:24 -07:00
2026-07-06 16:26:56 -07:00
2026-07-09 08:17:13 -07:00
2026-07-09 02:32:10 +00:00
2026-07-07 13:00:44 -07:00
2026-07-07 01:12:24 +00:00
2026-05-07 15:44:17 -07:00
2026-06-15 20:10:53 -07:00
2026-07-09 16:51:44 +00:00
2026-06-21 13:35:25 -07:00
2026-07-09 17:33:37 +01:00
2026-06-24 23:24:01 +01:00
2026-06-22 11:11:25 -07:00
2026-07-09 16:51:44 +00:00
2026-07-09 12:25:19 +09:00
2026-07-09 12:16:15 -04:00
2026-07-09 10:12:30 +01:00
2026-06-05 15:41:13 -07:00
2026-07-09 00:58:28 +00:00
2026-07-09 11:17:05 +01:00
2026-06-26 18:05:52 -07:00
2026-06-15 21:53:47 -07:00
2026-06-13 21:43:39 -07:00
2026-07-09 16:51:44 +00:00
2026-06-19 12:47:53 -07:00
2026-07-08 15:20:40 -04:00
2026-07-09 15:44:59 +01:00
2026-07-03 13:06:07 -07:00
2026-05-07 15:44:17 -07:00
2026-07-08 13:49:05 +01:00
2026-05-28 23:09:55 -07:00
2026-07-07 20:01:03 -04:00
2026-07-07 18:00:35 -07:00
2026-07-09 02:32:10 +00:00
2026-07-08 12:17:58 -04:00
2026-06-12 19:52:49 +00:00
2026-07-06 14:51:34 -07:00
2026-05-07 15:44:17 -07:00
2026-07-09 02:32:10 +00:00
2026-07-09 12:25:19 +09:00
2026-07-07 03:49:53 +00:00
2026-06-04 09:53:08 -04:00
2026-07-09 02:32:10 +00:00
2026-07-07 17:43:19 -07:00
2026-07-09 03:40:08 +00:00
2026-07-09 17:33:37 +01:00
2026-06-04 09:53:08 -04:00
2026-07-07 17:43:19 -07:00
2026-06-23 22:51:19 +01:00
2026-05-25 17:26:10 -03:00
2026-07-07 10:52:38 -07:00
2026-07-08 19:55:03 -07:00
2026-05-07 15:44:17 -07:00
2026-04-22 22:24:12 -07:00
2026-05-07 15:44:17 -07:00
2026-07-08 18:58:02 +01:00
2026-07-08 19:55:03 -07:00
2026-07-09 12:25:19 +09:00
2026-07-09 17:33:37 +01:00
2026-05-26 20:59:47 -07:00
2026-06-12 19:52:49 +00:00
2026-07-07 17:50:39 -04:00
2026-06-25 13:56:08 -07:00
2026-06-23 19:36:17 -07:00
2026-07-09 14:35:09 +01:00
2026-05-07 15:44:17 -07:00
2026-05-13 21:23:19 +00:00
2026-05-07 15:44:17 -07:00
2026-07-09 12:25:19 +09:00
2026-07-08 19:55:03 -07:00
2026-07-09 12:25:19 +09:00
2026-07-09 16:27:50 +00:00
2026-05-07 15:44:17 -07:00
2026-06-24 22:33:18 +00:00
2026-06-13 21:43:39 -07:00
2026-06-13 21:43:39 -07:00
2026-07-08 12:57:27 -07:00
2026-07-08 13:22:10 -07:00
2026-04-24 17:49:29 -07:00
2026-07-09 12:25:19 +09:00
2026-07-08 14:06:15 -07:00
2026-04-20 22:41:54 -07:00
2026-07-02 10:59:00 -07:00
2026-06-04 09:16:03 -07:00
2026-05-26 20:59:47 -07:00