authorgravatar for 70173040+connwalk@users.noreply.github.comConnor Walker <70173040+connwalk@users.noreply.github.com> 2026-10-11 04:05:02+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-11 00:05:02-03:00
log0eef5d0c76f1765b7a44fa82e965bf5142d64169
tree8234898aaba66c4e9bad1cbde5c369aeb36ef2c3
parenta4a1a803a3a6d10d16e45f505a2b95e99430b1cb
signature Signed by PGP key B5690EEEBB952194

fix(codex): prevent unsupported agent history in ChatGPT sharing (#17499)

Co-authored-by: connorwalker <connor@project-chinook.com>

2 files changed, 4 insertions(+), 0 deletions(-)

apps/server/src/provider/CodexManagedRuntime.test.ts+2
......@@ -163,6 +163,8 @@ it.effect.each(
163163 'model_providers.openai_token_sharing.model_catalog_url="https://api.openai.com/v1/models"',
164164 );
165165 assert.include(args, "features.api_key_model_discovery=true");
166 assert.include(args, "features.multi_agent=false");
167 assert.include(args, "features.multi_agent_v2=false");
166168 assert.notInclude(effective.config.launchArgs, "model_catalog_json");
167169 assert.notInclude(effective.config.launchArgs, "x-openai-chatpass-test");
168170 assert.include(args, "model_providers.openai_token_sharing.supports_websockets=false");
apps/server/src/provider/CodexManagedRuntime.ts+2
......@@ -22,6 +22,8 @@ const managedCodexLaunchArgs = [
2222 'model_providers.openai_token_sharing.base_url="https://api.openai.com/v1"',
2323 'model_providers.openai_token_sharing.model_catalog_url="https://api.openai.com/v1/models"',
2424 "features.api_key_model_discovery=true",
25 "features.multi_agent=false",
26 "features.multi_agent_v2=false",
2527 'model_providers.openai_token_sharing.env_key="ACCESS_TOKEN"',
2628 'model_providers.openai_token_sharing.wire_api="responses"',
2729 "model_providers.openai_token_sharing.requires_openai_auth=false",