Skip to content

remove experimental requirement on agent variables#2079

Merged
miguelg719 merged 2 commits intobrowserbase:contrib/2079from
chromiebot:chromie/chore-pr-https-github-com-browserbas
May 4, 2026
Merged

remove experimental requirement on agent variables#2079
miguelg719 merged 2 commits intobrowserbase:contrib/2079from
chromiebot:chromie/chore-pr-https-github-com-browserbas

Conversation

@chromiebot
Copy link
Copy Markdown
Contributor

@chromiebot chromiebot commented May 4, 2026

why

what changed

test plan


Summary by cubic

Enable variables in v3 agentExecute without requiring experimental mode, and update API schemas to preserve both simple and rich variable shapes. CUA mode remains unsupported for variables.

  • New Features
    • Added variables to AgentExecuteOptionsSchema and server OpenAPI so values pass through unchanged.
    • Removed the experimental-feature check for variables in validateExperimentalFeatures; CUA-mode rejection stays.
    • Updated JSDoc on AgentExecuteOptionsBase.variables and added unit tests for validation, schema parsing, and client serialization.

Written for commit 65b3c75. Summary will update on new commits.

claude added 2 commits May 4, 2026 23:35
- New test: agent-variables-validation.test.ts verifying variables work
  without experimental mode and continue to be rejected in CUA mode
- Extend api-variables-schema.test.ts with AgentExecuteRequestSchema test
- Extend api-client-observe-variables.test.ts with agentExecute client test
- Add variables field to AgentExecuteOptionsSchema (Zod) so API
  parsing preserves flat and rich variable shapes
- Remove the experimental-mode requirement for agent variables
  while keeping the CUA-mode rejection
- Update JSDoc on AgentExecuteOptionsBase.variables to drop
  @experimental annotation
- Update server-v3 OpenAPI schema (AgentExecuteOptions and
  AgentExecuteOptionsOutput) with variables ref
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 4, 2026

🦋 Changeset detected

Latest commit: 65b3c75

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

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 github-actions Bot added external-contributor Tracks PRs mirrored from external contributor forks. external-contributor:awaiting-approval Waiting for a stagehand team member to approve the latest external commit. labels May 4, 2026
@chromiebot chromiebot changed the base branch from main to contrib/2079 May 4, 2026 23:39
@miguelg719 miguelg719 merged commit 284ca24 into browserbase:contrib/2079 May 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor:awaiting-approval Waiting for a stagehand team member to approve the latest external commit. external-contributor Tracks PRs mirrored from external contributor forks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants