fix(codex): apply reasoning effort correctly

This commit is contained in:
weishu
2026-05-15 19:03:07 +08:00
parent 94b644c3f3
commit a099ae9199
5 changed files with 39 additions and 4 deletions
@@ -130,6 +130,7 @@ describe('appServerConfig', () => {
mode: 'default',
settings: {
model: 'o3',
reasoning_effort: 'high',
developer_instructions: withCollaborationInstructions(codexSystemPrompt)
}
});
@@ -155,6 +156,7 @@ describe('appServerConfig', () => {
mode: 'default',
settings: {
model: 'gpt-5.3-codex-spark',
reasoning_effort: 'high',
developer_instructions: withCollaborationInstructions(codexSystemPrompt)
}
});
@@ -236,6 +238,7 @@ describe('appServerConfig', () => {
mode: 'plan',
settings: {
model: 'o3',
reasoning_effort: 'high',
developer_instructions: withCollaborationInstructions(codexSystemPrompt)
}
});
@@ -255,6 +258,7 @@ describe('appServerConfig', () => {
mode: 'plan',
settings: {
model: 'o3',
reasoning_effort: null,
developer_instructions: withCollaborationInstructions(`${codexSystemPrompt}\n\nOnly respond in Chinese.`)
}
});
@@ -299,6 +303,7 @@ describe('appServerConfig', () => {
mode: 'default',
settings: {
model: 'o3',
reasoning_effort: null,
developer_instructions: withCollaborationInstructions(codexSystemPrompt)
}
});
@@ -319,6 +324,7 @@ describe('appServerConfig', () => {
mode: 'default',
settings: {
model: 'o3',
reasoning_effort: null,
developer_instructions: withCollaborationInstructions(codexSystemPrompt)
}
});
@@ -338,6 +344,7 @@ describe('appServerConfig', () => {
mode: 'default',
settings: {
model: 'gpt-5',
reasoning_effort: null,
developer_instructions: withCollaborationInstructions(codexSystemPrompt)
}
});