fix(codex): preserve effort on thread attach

This commit is contained in:
Dallin Romney
2026-08-20 23:41:33 -07:00
parent 512e71ec86
commit ec55c8d3df
2 changed files with 6 additions and 1 deletions
@@ -2405,6 +2405,7 @@ describe("codex conversation binding", () => {
threadId: "thread-old",
cwd: "/old-repo",
conversationStartId: "start-old",
reasoningEffort: "high",
},
});
const requests: Array<{ method: string; params: Record<string, unknown> }> = [];
@@ -2477,6 +2478,7 @@ describe("codex conversation binding", () => {
threadId: "thread-target",
cwd: "/new-repo",
conversationStartId: "start-new",
reasoningEffort: "high",
});
});
+4 -1
View File
@@ -664,7 +664,10 @@ async function writeThreadBindingFromResponse(
cwd: params.workspaceDir,
authProfileId: params.authProfileId,
model: response.model ?? resolved.model ?? params.model,
reasoningEffort: response.reasoningEffort,
reasoningEffort: resolveCodexBindingReasoningEffort(
response.reasoningEffort,
current?.reasoningEffort,
),
modelProvider: normalizeCodexAppServerBindingModelProvider({
authProfileId: params.authProfileId,
modelProvider: response.modelProvider ?? resolved.modelProvider ?? params.modelProvider,