Skip to content

feat(shared): support BB_BROWSER_TIMEOUT env var#210

Open
cold2600438-lgtm wants to merge 1 commit into
epiral:mainfrom
cold2600438-lgtm:feat/browser-timeout-env
Open

feat(shared): support BB_BROWSER_TIMEOUT env var#210
cold2600438-lgtm wants to merge 1 commit into
epiral:mainfrom
cold2600438-lgtm:feat/browser-timeout-env

Conversation

@cold2600438-lgtm
Copy link
Copy Markdown

@cold2600438-lgtm cold2600438-lgtm commented May 8, 2026

Summary

Allow users to override the default command timeout via the BB_BROWSER_TIMEOUT environment variable, instead of having to modify the source code.

Problem

When running site adapters that interact with LLM services (e.g., qwen/search), the SSE stream response can take 30–120 seconds depending on the query complexity. The current hardcoded 30-second timeout causes Command timeout errors for these long-running operations.

Solution

Read BB_BROWSER_TIMEOUT from process.env with a fallback to the original 30000ms (30s), preserving backward compatibility.

Usage

BB_BROWSER_TIMEOUT=120000 bb-browser site qwen/search "..."

Changes

  • packages/shared/src/constants.ts: COMMAND_TIMEOUT now reads from process.env.BB_BROWSER_TIMEOUT

@cold2600438-lgtm cold2600438-lgtm force-pushed the feat/browser-timeout-env branch from ef11cee to 206898b Compare May 8, 2026 07:45
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.

2 participants