mirror of
https://github.com/browser-use/browser-use
synced 2026-04-22 17:45:09 +02:00
docs: Add cleanup instructions to SKILL.md
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -82,3 +82,5 @@ product_extraction.ipynb
|
|||||||
product_extraction.py
|
product_extraction.py
|
||||||
*report.md
|
*report.md
|
||||||
plot.py
|
plot.py
|
||||||
|
|
||||||
|
.claude/
|
||||||
|
|||||||
@@ -206,3 +206,23 @@ browser-use sessions # Check active sessions
|
|||||||
browser-use close --all # Clean slate
|
browser-use close --all # Clean slate
|
||||||
browser-use open <url> # Fresh start
|
browser-use open <url> # Fresh start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Cleanup
|
||||||
|
|
||||||
|
**Important:** Browser sessions persist after commands complete. When you're done with browser automation:
|
||||||
|
|
||||||
|
1. **Always offer to clean up** - Ask the user: "Would you like me to close the browser session?"
|
||||||
|
|
||||||
|
2. **If user says yes**, run:
|
||||||
|
```bash
|
||||||
|
browser-use close # Close current session
|
||||||
|
# Or for all sessions:
|
||||||
|
browser-use close --all
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **If user says no**, inform them:
|
||||||
|
- The browser will stay open in the background
|
||||||
|
- They can close it later with `browser-use close`
|
||||||
|
- Or it will be cleaned up when they run `browser-use server stop`
|
||||||
|
|
||||||
|
**Never leave sessions running without informing the user.** A headed browser window left open can be confusing, and headless browsers consume resources silently.
|
||||||
|
|||||||
Reference in New Issue
Block a user