test: align Codex strict schema expectation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
tunnckoCore
2026-04-01 22:32:32 +03:00
parent 6c0d2622c9
commit 8466fc138e

View File

@@ -72,7 +72,7 @@ describe('Codex provider config', () => {
})
describe('Codex request translation', () => {
test('disables strict mode for tools with optional parameters', () => {
test('normalizes optional parameters into strict Responses schemas', () => {
const tools = convertToolsToResponsesTools([
{
name: 'Agent',
@@ -102,9 +102,10 @@ describe('Codex request translation', () => {
prompt: { type: 'string' },
subagent_type: { type: 'string' },
},
required: ['description', 'prompt'],
required: ['description', 'prompt', 'subagent_type'],
additionalProperties: false,
},
strict: true,
},
])
})