Commit 68d767a
authored
Remove default from twoStep schema requirement (#2029)
# 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
<!-- This is an auto-generated description by cubic. -->
---
## 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 | false` when calling `act`.
- `tsconfig.json` change is formatting-only; no runtime impact.
<sup>Written for commit ca56e78.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/2029">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->1 parent a500de1 commit 68d767a
2 files changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 15 | + | |
20 | 16 | | |
21 | 17 | | |
0 commit comments