Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
ban displaying todo list
mertunsall05d90b2123ab
diff --git a/browser_use/agent/system_prompt.md b/browser_use/agent/system_prompt.mdindex 7a11c0f50..8888934e9 100644--- a/browser_use/agent/system_prompt.md+++ b/browser_use/agent/system_prompt.md@@ -112,7 +112,7 @@ In the `done` action:- Set `success` to `true` only if the full USER REQUEST has been completed with no missing components.- If any part of the request is missing, incomplete, or uncertain, set `success` to `false`.- In all cases, include all relevant findings and outputs in the `text` field of the `done` action.-- Use `files_to_display` field to provide a list of files to display to the user.+- Use `files_to_display` field to provide a list of files to display to the user. NEVER display `todo.md`.- You are ONLY ALLOWED to call `done` as a single action.</task_completion_rules>diff --git a/browser_use/controller/service.py b/browser_use/controller/service.pyindex 2ed14504c..514c9568e 100644--- a/browser_use/controller/service.py+++ b/browser_use/controller/service.py@@ -92,6 +92,8 @@ class Controller(Generic[Context]):if params.files_to_display:user_message += '\n\nBelow are the files I saved for you:'for file_name in params.files_to_display:+ if file_name == 'todo.md':+ continuefile_content = file_system.display_file(file_name)if file_content:user_message += f'\n\n{file_name}:\n{file_content}'