Skip to content

browse doctor: add a Fix: hint when the last browser start failed #3431

Open

Description

@shrey150

Follow-up to #3423. When the last browser start failed, browse doctor now shows the error on the browser, browserbase, or cdp row, but it doesn't suggest what to do next. Other failing checks do, for example Fix: start Chrome with --remote-debugging-port=9222.

Current:

[fail] browserbase  last start failed: 401 Unauthorized

Status: fail

Proposed:

[fail] browserbase  last start failed: 401 Unauthorized

Status: fail
Fix: check BROWSERBASE_API_KEY, then run `browse stop` and retry

The right hint depends on the error. Some example cases:

  • Auth errors (401 or 403) on remote: check BROWSERBASE_API_KEY.
  • The local browser fails to launch: check that Chrome or Chromium is installed, or set the path.
  • The CDP connection is refused: start Chrome with --remote-debugging-port=9222.
  • Anything else: browse stop --session <name> --force, then retry.

Depends on #3423 landing first.

Activity

  1. added
    enhancement
    good first issue
    on Nov 10, 2026
  2. aryansahai22 commented on Nov 10, 2026

    @aryansahai22
    Contributor

    I'd like to take this one.

    Plan: a small helper in doctor.ts that picks the fix from the daemon's target kind plus the recorded error, covering the cases listed here: 401/403 on a remote target → check BROWSERBASE_API_KEY; a managed-local start that found no Chrome → install Chrome/Chromium or set CHROME_PATH; a refused CDP connection → start Chrome with --remote-debugging-port=9222; anything else → browse stop --session <name> --force and retry. Unit tests for each case, no change to the --json shape beyond the existing fix field.

    Draft PR is up at #3434, stacked on #3423; I'll rebase and mark it ready once that lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions