Skip to content

Commit 0eef5d0

Browse files
connwalkconnorwalker
andauthored
fix(codex): prevent unsupported agent history in ChatGPT sharing (pingdotgg#17499)
Co-authored-by: connorwalker <[email protected]>
1 parent a4a1a80 commit 0eef5d0

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/server/src/provider/CodexManagedRuntime.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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",

0 commit comments

Comments
 (0)