Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): use Codex native collaboration modes #24737

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/24737/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 33 changed files with 46 additions and 25 deletions (loading 30).

x
0 of 33 viewed, 33 left
36 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.tsModified
View file
@@ -134,6 +134,40 @@
});
​
describe("CodexAdapterV2 runtime policy", () => {
+ it.effect.each([undefined, false, true])(
+ "selects native collaboration modes without prompt overrides with hasT3Mcp=%s",
+ (hasT3Mcp) =>
+ Effect.gen(function* () {
+ for (const interactionMode of ["plan", "default"] as const) {
+ for (const reasoningEffort of [undefined, "high"] as const) {
+ const params = yield* CodexAdapterV2.buildCodexTurnStartParams({
+ nativeThreadId: "native-mode-switch",
+ codexInput: [{ type: "text", text: "test" }],
+ runtimePolicy: { runtimeMode: "full-access", interactionMode, cwd: null },
+ modelSelection: {
+ instanceId: ProviderInstanceId.make("codex"),
+ model: "gpt-5.4",
+ ...(reasoningEffort === undefined
+ ? {}
+ : { options: [{ id: "reasoningEffort", value: reasoningEffort }] }),
+ },
+ ...(hasT3Mcp === undefined ? {} : { hasT3Mcp }),
+ });
+​
+ assert.deepEqual(params.collaborationMode, {
+ mode: interactionMode,
+ settings: {
+ model: "gpt-5.4",
+ ...(reasoningEffort === undefined ? {} : { reasoning_effort: reasoningEffort }),
+ },