Skip to content

Use Nova-prefixed Browserbase environment variables - #367

Merged
yashdev9274 merged 3 commits into
mainfrom
capy/browserbase-env-prefix
Nov 20, 2026
Merged

yashdev9274 merged 3 commits into
mainfrom
capy/browserbase-env-prefix

Conversation

@yashdev9274

@yashdev9274 yashdev9274 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Read Browserbase credentials from NOVA_AGENT_BROWSER_BROWSERBASE_API_KEY and NOVA_AGENT_BROWSER_BROWSERBASE_PROJECT_ID in both the browser service and Nova's agent tool execution.
  • Update the browser setup hint and .env.example to document the new production variable names.
  • Add coverage for config parsing, trimming, and configured-state detection.

Verification

  • Passed 12 focused Browserbase provider and lifecycle tests.
  • git diff --check passed.

Open in Capy

Summary by CodeRabbit

  • Configuration
    • Browser access now uses the NOVA_AGENT_BROWSER_BROWSERBASE_API_KEY and NOVA_AGENT_BROWSER_BROWSERBASE_PROJECT_ID environment variables. Examples and setup guidance reflect the updated names.
    • Browser access is considered configured only when both values are provided. Leading and trailing whitespace is removed from the values before they are used.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
supercli Ready Ready Preview Nov 20, 2026 11:57am UTC
supercli-client Ready Ready Preview Nov 20, 2026 11:57am UTC
supercli-docs Ready Ready Preview Nov 20, 2026 11:57am UTC
1 Skipped Deployment
Project Deployment Actions Updated
vercel-supercodeai-integration Skipped Skipped Nov 20, 2026 11:57am UTC

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cafafea9-6346-4fd0-9ef9-5932faa52601
Commits

Reviewing files that changed from the base of the PR and between 0c03ae2 and 1e35b00.

Files selected for processing: 2

  • apps/web/modules/nova/browser/provider.test.ts
  • apps/web/modules/nova/browser/provider.ts

No actionable comments were generated in the recent review.

Walkthrough

Browserbase configuration now uses Nova-prefixed environment variables. A shared helper trims the values and supplies them to browser provider setup. The configuration check, error message, environment example, browser setup prompt, and tests use the updated variable names.

Changes

Browserbase configuration

Layer / File(s) Summary
Read and validate Browserbase configuration
apps/web/modules/nova/browser/provider.ts, apps/web/modules/nova/browser/provider.test.ts, apps/web/.env.example
The provider reads and trims the Nova-prefixed API key and project ID. The configured check requires both values to be nonempty. Tests and the environment example use the updated variables. The 401 error message names the updated API-key variable.
Use shared configuration in browser flows
apps/web/modules/nova/browser/server.ts, apps/web/modules/nova/sessions/turn.ts, apps/web/modules/nova-web/components/browser-pane.tsx
The browser service and browser-tool execution use browserbaseConfig(). The unconfigured-browser message names the Nova-prefixed variables.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Refactor

Merge Risk: Minimal · previous review 0c03a

This change renames the Browserbase credential variables to Nova-prefixed names and updates the setup guidance and tests to match. Deployments that still use only the old names will need the new variables set before the browser feature works. That is a deliberate, documented part of the change. No code-level defect was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Use Nova-prefixed Browserbase environment variables" matches the main change. The PR switches the browser service and Nova agent tool execution from BROWSERBASE_API_KEY and BROWSERBASE_PROJ…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Use Nova-prefixed Browserbase environment variables" matches the main change. The PR switches the browser service and Nova agent tool execution from BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID to NOVA_AGENT_BROWSER_BROWSERBASE_API_KEY and NOVA_AGENT_BROWSER_BROWSERBASE_PROJECT_ID. The changes span the .env.example, the browser setup prompt, provider.ts (new browserbaseConfig helper), server.ts, turn.ts, and the tests.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the keys at dawn
Two trimmed strings are neatly drawn
The browser finds its settings clear
Nova names now guide it here
I hop along, configuration done!

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ff7c3299-6c0f-433f-9b62-03182dd9d539
Commits

Reviewing files that changed from the base of the PR and between b865785 and 0c03ae2.

Files selected for processing: 1

  • apps/web/modules/nova/browser/provider.ts

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

This branch was successfully deployed

3 active and 1 inactive deployments
Preview – supercli — 1e35b00f Deployed Nov 20, 2026 by vercel[bot]
Preview – supercli-docs — 1e35b00f Deployed Nov 20, 2026 by vercel[bot]
Preview – supercli-client — 1e35b00f Deployed Nov 20, 2026 by vercel[bot]
Preview – vercel-supercodeai-integration — 1e35b00f Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant