TypeScript
fix(codex): prevent unsupported agent history in ChatGPT sharing (#17499)
Connor Walker0eef5d0c76f1
diff --git a/apps/server/src/provider/CodexManagedRuntime.test.ts b/apps/server/src/provider/CodexManagedRuntime.test.tsindex cf95d981d8a..69d27f1377b 100644--- a/apps/server/src/provider/CodexManagedRuntime.test.ts+++ b/apps/server/src/provider/CodexManagedRuntime.test.ts@@ -163,6 +163,8 @@ it.effect.each('model_providers.openai_token_sharing.model_catalog_url="https://api.openai.com/v1/models"',);assert.include(args, "features.api_key_model_discovery=true");+ assert.include(args, "features.multi_agent=false");+ assert.include(args, "features.multi_agent_v2=false");assert.notInclude(effective.config.launchArgs, "model_catalog_json");assert.notInclude(effective.config.launchArgs, "x-openai-chatpass-test");assert.include(args, "model_providers.openai_token_sharing.supports_websockets=false");diff --git a/apps/server/src/provider/CodexManagedRuntime.ts b/apps/server/src/provider/CodexManagedRuntime.tsindex f21cc6c3bcf..fd8f3d7a9cd 100644--- a/apps/server/src/provider/CodexManagedRuntime.ts+++ b/apps/server/src/provider/CodexManagedRuntime.ts@@ -22,6 +22,8 @@ const managedCodexLaunchArgs = ['model_providers.openai_token_sharing.base_url="https://api.openai.com/v1"','model_providers.openai_token_sharing.model_catalog_url="https://api.openai.com/v1/models"',"features.api_key_model_discovery=true",+ "features.multi_agent=false",+ "features.multi_agent_v2=false",'model_providers.openai_token_sharing.env_key="ACCESS_TOKEN"','model_providers.openai_token_sharing.wire_api="responses"',"model_providers.openai_token_sharing.requires_openai_auth=false",