Skip to content

stagehand-python@4.6.0a0.dev1755

@sharvaribrowserbase sharvaribrowserbase tagged this 03 Dec 20:43
## Summary

- Treat dynamic values in facade error templates as literal text
- Keep TypeScript and Python formatting behavior consistent
- Add regression coverage for special-character values

## Why

The TypeScript formatter currently applies JavaScript replacement-string
semantics to dynamic values. This can change the rendered value when it
contains replacement syntax.

Using replacement callbacks preserves the original value and keeps
contract messages consistent across host implementations.

## Testing

- pnpm --filter @browserbasehq/stagehand-integrations typecheck
- pnpm --filter @browserbasehq/stagehand-integrations test
- oxfmt checks for changed files
- oxlint checks for changed TypeScript files
- Built facade export smoke check for normal and special-character
values

---------

Co-authored-by: sharvaribrowserbase <357571853+sharvaribrowserbase@users.noreply.github.com>
Assets 2
Loading