Skip to content

Browser proxy should be ready-to-use or visibly blocked with a guided repair path #1154

Closed as not planned

Description

@RomneyDa

Problem

Browser control requires a separately running browser-control host on Gateway port + 2. Current diagnostics explain some failure modes, but a normal user can still request a browser action, see no visible result, and watch the agent unsuccessfully troubleshoot or restart the Gateway.

Desired outcome

Browser control is either ready to use or clearly unavailable with a concrete in-app repair path.

Definition of done

  • Run a preflight when Browser Control is enabled and before the first browser request.
  • Distinguish absent, unreachable, unauthenticated, and incorrectly SSH-forwarded hosts.
  • Offer a concrete repair action: start/install/configure the host, or explicitly disable the capability with a clear explanation.
  • Supply concise capability-state guidance to chat/agent context so it does not repeatedly restart the Gateway to diagnose the same prerequisite.
  • Add local MCP and gateway-mediated proof for success and each blocked state.

Related

Activity

  1. added
    P1
    impact:ux-friction
    on Aug 13, 2026
  2. added
    status: 🚢 actively landing
    clawsweeper:linked-pr-open
    clawsweeper:needs-info
    clawsweeper:needs-product-decision
    clawsweeper:no-new-fix-pr
    issue-rating: 🦪 silver shellfish
    on Aug 13, 2026
  3. clawsweeper commented on Aug 13, 2026

    @clawsweeper

    Codex review: this still needs some work. Reviewed September 28, 2026, 3:11 PM ET / 19:11 UTC.

    Summary
    Current main still sends browser actions without the requested readiness check or state-specific recovery. The earlier fix PR closed unmerged, and the maintainer's validated checkpoint has no published PR; current-release reports show the blocked experience remains relevant.

    Reproducibility: yes. for the readiness gap: current source sends the requested browser action without a separate preflight, and current-release reports describe the owner-verification blocked state. This read-only review did not execute the full live state matrix.

    Root-cause cluster
    Relationship: canonical
    Canonical: #1154
    Summary: This issue owns browser-specific guided readiness; related reports cover an overlapping blocked state, broader capability diagnostics, and a separate host-installation lane.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    The security-sensitive, maintainer-owned increment has an unpublished checkpoint and a trusted live-proof blocker, so another automated fix PR is not a safe route.

    Security
    Needs attention: The proposed authenticated probe is security-sensitive because browser requests use a shared gateway token.

    Review details

    Best possible solution:

    Land the approved authenticated status preflight with inline Doctor or Fix guidance and an explicit Disable option, while retaining listener-owner verification before every shared-token request.

    Do we have a high-confidence way to reproduce the issue?

    Yes for the readiness gap: current source sends the requested browser action without a separate preflight, and current-release reports describe the owner-verification blocked state. This read-only review did not execute the full live state matrix.

    Is this the best way to solve the issue?

    Yes. The maintainer-approved, read-only check is a bounded way to explain failures without adding browser-host installation to this increment; it must retain the existing token-safety gate.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The reported checkpoint has no published PR or trusted browser listener environment for live ready-state and complete blocked-state proof through MCP and the Gateway.

    Codex review notes: model internal, reasoning high; reviewed against dba81213371c.

    Label changes

    Label changes:

    No label changes.

    Label justifications:

    • P0: A first-time user can enable Browser Control yet remain blocked, with recovery currently requiring technical host and forwarding steps.
    • impact:security: Browser requests carry a shared token, so readiness checks must preserve listener-owner verification before delivery.
    • impact:ux-release-blocker: The reported Browser Control path has no complete in-app way to identify and repair a missing or unverified host.
    Evidence reviewed

    Security concerns:

    • [high] Preserve listener verification before token delivery — src/OpenClaw.Shared/Capabilities/BrowserProxyCapability.cs:80
      The existing proxy checks listener ownership before its shared-token request. The readiness probe must do the same for each request, including after a listener or forward changes.
      Confidence: 0.95

    What I checked:

    Likely related people:

    • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
    • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
    • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  4. added
    clawsweeper:needs-maintainer-review
    clawsweeper:source-repro
    and removed
    clawsweeper:needs-info
    issue-rating: 🦪 silver shellfish
    on Aug 26, 2026
  5. 14 remaining items

  6. removed
    clawsweeper:linked-pr-open
    impact:ux-friction
    on Sep 28, 2026
  7. shanselman commented on Sep 28, 2026

    @shanselman
    Collaborator

    Maintainer decision: take the guided-readiness path first. Browser Control should perform a non-mutating authenticated readiness check before the first requested action, visibly distinguish absent, unreachable, unauthenticated, and incorrect-forward states, and offer concrete Fix guidance plus an explicit Disable option. Keep browser-host installation/startup outside Companion's supported lifecycle for this increment; #1446 remains the separate Chrome installation/pairing lane. Preserve listener-owner verification before any shared token is sent, including after listener changes. #1333 remains useful partial-overlap evidence for the owner-verification failure state.

  8. added
    status: 🚢 actively landing
    and removed
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    on Sep 28, 2026
  9. added
    clawsweeper:needs-security-review
    impact:security
    on Sep 28, 2026
  10. shanselman commented on Sep 28, 2026

    @shanselman
    Collaborator

    Maintainer implementation checkpoint (current head b7585584905be6c846db841576672b43a0c60f29):

    Implemented the bounded guided-readiness increment without taking ownership of browser-host installation or startup.

    • browser.proxy verifies listener ownership before every shared-token request and repeats an authenticated, read-only status preflight before every requested action.
    • Ready requires the browser-control status shape (enabled, running, cdpReady), so a forward aimed at the Gateway or another HTTP listener fails closed.
    • Stable blocked states cover invalid endpoint, incorrect SSH forward, unverified listener owner, absent host, unreachable host, unexpected host, missing authentication, and rejected authentication.
    • Agent/MCP errors include explicit Fix: and Disable: guidance and state that restarting the Gateway does not repair browser-host prerequisites.
    • Existing Command Center/Diagnostics setup guidance and the Permissions Browser control toggle remain the in-app Fix and Disable surfaces. No new node command was added.

    Validation:

    • ./build.ps1: passed, all 5 projects.
    • Shared: 4,134 passed, 32 skipped, 0 failed.
    • Tray: 3,154 passed, 0 failed.
    • WinNode CLI: 127 passed, 0 failed.
    • Focused browser readiness/capability/endpoint: 56 passed, 0 failed.
    • Focused tray browser diagnostics: 31 passed, 0 failed.
    • Live current-head MCP: 52 tools, browser.proxy discovered, operator/node connected and paired.
    • Live winnode browser.proxy and real Gateway nodes invoke browser.proxy: both failed closed with [listener_owner_unverified], concrete Fix/Disable guidance, and no shared-token delivery to the unverified listener.
    • Current-head visible UI proof captured for active Browser control with an explicit toggle and Diagnostics > Copy browser setup guidance.
    • Rubber-duck review found a false-ready risk for an SSH forward aimed at the Gateway; fixed by validating the real browser-control status payload and by keeping 403 action failures distinct from authentication rejection.

    Remaining proof blocker:

    • This host has no trusted setup-managed browser listener or tray-owned SSH browser forward. Therefore live ready-state success and live coverage of every blocked state cannot be collected without weakening the listener-owner gate or creating unsupported host lifecycle state.
    • Unit/real-loopback coverage proves the ready/status-shape path and every classification, but the issue requires complete live MCP and Gateway proof before publication.

    No PR was created. Active ownership is being removed until a trusted managed listener/SSH proof environment is available.

  11. removed
    status: 🚢 actively landing
    on Sep 28, 2026
  12. github-actions commented on Oct 13, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  13. github-actions commented on Oct 21, 2026

    @github-actions
    Contributor

    Closing due to inactivity.
    If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.

  14. locked as resolved and limited conversation to collaborators on Oct 24, 2026
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

    P0clawsweeper:needs-security-reviewclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:securityimpact:ux-release-blockerissue-rating: 🦞 diamond lobsterstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions