-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Feature]: Make managed browser launch degrade cleanly when no display server is available #97027
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.enhancementNew feature or requestNew feature or requestimpact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.enhancementNew feature or requestNew feature or requestimpact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Summary
Managed browser tooling should return a structured, actionable result when a profile is configured for headed launch but the current environment has no display server.
Problem to solve
In headless or service contexts, a browser profile may be configured with
headless=false, but$DISPLAY/$WAYLAND_DISPLAYis unavailable. The browser tool can then fail before opening a page, even when the calling workflow only needs automation/headless access.The current failure is understandable to an expert, but it is not ideal for automation:
Proposed solution
Proposed shape
One of:
no_display_for_headed_profile, plus remediation fields.Recommended response fields:
{ "ok": false, "reason": "no_display_for_headed_profile", "profile": "openclaw", "requestedHeadless": false, "displayPresent": false, "remediation": "Set profile headless=true, set OPENCLAW_BROWSER_HEADLESS=1, or run under a display/Xvfb." }Acceptance criteria
Alternatives considered
No response
Impact
This improves reliability for scheduled or server-side browser workflows and avoids unnecessary user intervention when a headless fallback would be safe.
Evidence/examples
No response
Additional information
No response