stagehand icon indicating copy to clipboard operation
stagehand copied to clipboard

fix(core): respect v3 piercer debug option

Open EfeDurmaz16 opened this issue 6 months ago • 2 comments

Summary

  • Uses opts.debug ?? false instead 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 ?? false in installV3ShadowPiercer.
    • Add unit tests for default silent mode and debug-enabled logging.

Written for commit eb9315f5c81af8203b37b83fd03f66750d572e24. Summary will update on new commits. Review in cubic

EfeDurmaz16 avatar May 05 '26 23:05 EfeDurmaz16

🦋 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

changeset-bot[bot] avatar May 05 '26 23:05 changeset-bot[bot]

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.

github-actions[bot] avatar May 05 '26 23:05 github-actions[bot]