docs: remove Browserbase project ID references#1958
Conversation
projectId is optional in all code paths — only apiKey is required. Remove BROWSERBASE_PROJECT_ID from env examples, code samples, type docs, config tables, and prose across 30 doc files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
There was a problem hiding this comment.
1 issue found across 30 files
Confidence score: 5/5
- This looks low risk to merge: the only issue is a documentation layout mismatch in
packages/docs/v3/integrations/mcp/configuration.mdx, not application logic. - The reported change (
<CardGroup cols={2}>with a single remaining card) is a minor presentation cleanup with limited user impact. - Pay close attention to
packages/docs/v3/integrations/mcp/configuration.mdx- align theCardGroupwrapper/column count with the single-card content to avoid awkward docs rendering.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/docs/v3/integrations/mcp/configuration.mdx">
<violation number="1" location="packages/docs/v3/integrations/mcp/configuration.mdx:28">
P3: `<CardGroup cols={2}>` now contains only one card after the `BROWSERBASE_PROJECT_ID` card was removed. Either remove the `CardGroup` wrapper or change to `cols={1}`.</violation>
</file>
Architecture diagram
sequenceDiagram
participant App as "User Application"
participant Env as "Environment (.env)"
participant SDK as "Stagehand SDK"
participant BB_API as "Browserbase API"
participant Browser as "Remote Browser"
participant LLM as "LLM Provider (OpenAI/Anthropic/Gemini)"
Note over App,Env: Configuration Phase
App->>Env: CHANGED - Load BROWSERBASE_API_KEY
Note right of Env: BROWSERBASE_PROJECT_ID is now optional
App->>SDK: new Stagehand({ env: "BROWSERBASE", apiKey })
Note over SDK,BB_API: Session Initialization
SDK->>SDK: CHANGED - Construct session params (omit projectId if missing)
SDK->>BB_API: POST /sessions (Headers: x-api-key)
alt Optional Project Selection
SDK->>BB_API: Include projectId in payload (if manually provided)
else Default Project
SDK->>BB_API: Payload without projectId
end
BB_API-->>SDK: Session ID & Connect URL
Note over SDK,Browser: Execution Loop
SDK->>Browser: Connect via WebSocket (CDP)
loop Task Execution (act / extract / observe)
SDK->>Browser: Fetch DOM / Screenshot
Browser-->>SDK: Page State
SDK->>LLM: Send context + prompt
LLM-->>SDK: Structured Action/Data
SDK->>Browser: Execute Playwright/Puppeteer commands
end
SDK-->>App: Return Result
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.
- Remove CardGroup wrapper around single card in MCP config - Update model to claude-sonnet-4-6 in agent.mdx example Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
1 issue found across 2 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/docs/v3/references/agent.mdx">
<violation number="1" location="packages/docs/v3/references/agent.mdx:488">
P2: This model name was updated to `claude-sonnet-4-6` here but four other occurrences of `claude-sonnet-4-20250514` remain in this file (lines 66, 135, 535, 715). Since the dated Sonnet 4 variant retires by May 2026, consider updating the remaining references for consistency — particularly the nearby "Advanced Model Config" example at line 535.
(Based on your team's feedback about using claude-sonnet-4-6 instead of the dated Sonnet 4 variant.) [FEEDBACK_USED]</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.
…docs Replace all dated Sonnet 4 model references with the non-dated alias across 6 doc files (12 occurrences). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
BROWSERBASE_PROJECT_ID/projectIdreferences from v3 docs, SDK docs, integration guides, migration guides, and CLI README (30 files)BROWSERBASE_API_KEYis required —projectIdis optional in all code control paths (conditionally included via spread patterns, never validated as required)models.mdxTest plan
🤖 Generated with Claude Code
Summary by cubic
Removed all
BROWSERBASE_PROJECT_ID/projectIdreferences across v3 docs so setup only requiresBROWSERBASE_API_KEY. Also updated Anthropic model references toanthropic/claude-sonnet-4-6across examples and guides.Migration
BROWSERBASE_PROJECT_IDfrom env files, deployment configs, session params, and env var lists; keepBROWSERBASE_API_KEYonly.projectIdstill works; it’s optional and not required.Refactors
anthropic/claude-sonnet-4-20250514references withanthropic/claude-sonnet-4-6across v3 docs (agent examples, warnings, best practices).CardGroupwrapper around a single card.Written for commit 7a1688d. Summary will update on new commits. Review in cubic