Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(codex): prevent catalog agents in ChatGPT sharing #28143

Closedmatteodante(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/28143/headopened View on GitHub

Showing 2 changed files with 4 additions and 1 deletion.

x
0 of 2 viewed, 2 left
2 additions and 1 deletionapps/server/src/provider/CodexManagedRuntime.test.tsModified
View file
@@ -121,7 +121,7 @@
assert.equal(runtime.homeLayout.mode, "direct");
} else {
assert.include(effective.config.homePath, instanceId);
- assert.include(effective.config.homePath, "userdata/providers/codex");
+ assert.include(effective.config.homePath, path.join("userdata", "providers", "codex"));
assert.equal(runtime.homeLayout.mode, "authOverlay");
assert.equal(
yield* fs.readLink(path.join(effective.config.homePath, "sessions")),
@@ -197,6 +197,7 @@
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.include(args, "agents.enabled=false");
assert.notInclude(effective.config.launchArgs, "model_catalog_json");
assert.notInclude(effective.config.launchArgs, "x-openai-chatpass-test");
assert.include(provider, "supports_websockets=false");
2 additions and 0 deletionsapps/server/src/provider/CodexManagedRuntime.tsModified
View file
@@ -27,6 +27,8 @@
"features.api_key_model_discovery=true",
"features.multi_agent=false",
"features.multi_agent_v2=false",
+ // The model catalog can enable native agents independently of the feature flags.
+ "agents.enabled=false",
.map((value) => `-c ${JSON.stringify(value)}`)