openclaw - 💡(How to fix) Fix [Feature]: Browser auto-close after task completion [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#56271Fetched 2026-04-08 01:42:53
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
1

Add an option to auto-close the browser window after a browser task completes in the control UI.

Root Cause

Add an option to auto-close the browser window after a browser task completes in the control UI.

RAW_BUFFERClick to expand / collapse

Summary

Add an option to auto-close the browser window after a browser task completes in the control UI.

Problem

After using browser tools, users must manually close the browser window/frame in the control UI. Auto-close would improve workflow automation efficiency.

Proposed Solution

Add a browser.autoClose config option (boolean, default: false). When enabled, the browser window/frame in the control UI should auto-close after task completion.

Alternatives Considered

Manually adding browser(action=close) at the end of each task - not automated enough and adds friction to every workflow.

Impact

Affected users: Users of browser automation in control UI

Severity: Low-Medium (workflow inconvenience)

Frequency: Every browser task

Consequence: Manual window close adds unnecessary steps to automated workflows

extent analysis

Fix Plan

To implement the auto-close feature, we will add a browser.autoClose config option and modify the browser task completion logic.

Steps:

  • Add a browser.autoClose config option with a default value of false.
  • Modify the browser task completion handler to check the browser.autoClose config option.
  • If browser.autoClose is true, close the browser window/frame after task completion.

Example Code:

// config.js
const config = {
  // ...
  browser: {
    autoClose: false, // default value
  },
};

// browserTask.js
const completeTask = async () => {
  // ...
  if (config.browser.autoClose) {
    // Close the browser window/frame
    await browser.close();
  }
};

Verification

To verify the fix, follow these steps:

  • Set browser.autoClose to true in the config.
  • Run a browser task in the control UI.
  • Verify that the browser window/frame closes automatically after task completion.

Extra Tips

  • Make sure to handle any potential errors that may occur during browser window closure.
  • Consider adding a timeout or retry mechanism to ensure the browser window closes successfully.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING