Remove default from twoStep schema requirement
Merged
MI
7mo ago+2+2+0123456789-6-6-0123456789
why
z.boolean().default(false) on line 448 is incompatible with OpenAI's strict structured-output mode.
OpenAI's error:
'required' is required to be supplied and to be an array including every key in properties. Missing 'twoStep'.
what changed
test plan
Summary by cubic
Made twoStep a required boolean in the act schema (no default). This removes the silent false default and forces callers to be explicit about two-step actions.
- Migration
- Always pass
twoStep: true | falsewhen callingact. tsconfig.jsonchange is formatting-only; no runtime impact.
- Always pass