fix(core): respect v3 piercer debug option
Summary
- Uses
opts.debug ?? falseinstead of always enabling V3 piercer debug logging - Adds regression coverage for default-silent and debug-enabled behavior
Fixes #1996.
Verification
- pnpm --filter @browserbasehq/stagehand run build
- pnpm --dir packages/core exec vitest run --config vitest.config.ts dist/esm/tests/unit/v3-piercer-debug.test.js
Summary by cubic
Fixes v3 shadow piercer logging to respect debug; default is silent unless debug: true. Adds a patch changeset for @browserbasehq/stagehand.
- Bug Fixes
- Use
opts.debug ?? falseininstallV3ShadowPiercer. - Add unit tests for default silent mode and debug-enabled logging.
- Use
Written for commit eb9315f5c81af8203b37b83fd03f66750d572e24. Summary will update on new commits. Review in cubic
🦋 Changeset detected
Latest commit: eb9315f5c81af8203b37b83fd03f66750d572e24
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 4 packages
| Name | Type |
|---|---|
| @browserbasehq/stagehand | Patch |
| @browserbasehq/stagehand-evals | Patch |
| @browserbasehq/stagehand-server-v3 | Patch |
| @browserbasehq/stagehand-server-v4 | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This PR is from an external contributor and must be approved by a stagehand team member with write access before CI can run. Approving the latest commit mirrors it into an internal PR owned by the approver. If new commits are pushed later, the internal PR stays open but is marked stale until someone approves the latest external commit and refreshes it.