mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 03:45:46 -06:00
fix(codex): preserve effort on thread attach
This commit is contained in:
@@ -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",
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user