Agent Zero AI framework
Remove browser chat action button
Alessandro06a83030c00b
diff --git a/plugins/_browser/extensions/webui/chat-input-bottom-actions-start/browser-button.html b/plugins/_browser/extensions/webui/chat-input-bottom-actions-start/browser-button.htmldeleted file mode 100644index 61935624d..000000000--- a/plugins/_browser/extensions/webui/chat-input-bottom-actions-start/browser-button.html+++ /dev/null@@ -1,17 +0,0 @@-<button- type="button"- class="text-button browser-chat-action"- title="Open Browser"- aria-label="Open Browser"- data-bs-placement="top"- data-bs-trigger="hover"- @click="import('/js/surfaces.js').then(({ open }) => open('browser'))"->- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="14" height="14" aria-hidden="true">- <rect x="3" y="4" width="18" height="16" rx="2"></rect>- <path d="M3 8h18"></path>- <path d="M7 6h.01"></path>- <path d="M10 6h.01"></path>- </svg>- <p>Browser</p>-</button>diff --git a/tests/test_browser_agent_regressions.py b/tests/test_browser_agent_regressions.pyindex 0f773df7c..2f4de5a89 100644--- a/tests/test_browser_agent_regressions.py+++ b/tests/test_browser_agent_regressions.py@@ -656,7 +656,7 @@ def test_browser_canvas_restarts_stream_after_page_navigation():def test_browser_entry_points_prefer_canvas_and_modal_dock_handoff():- button_html = (+ browser_button_path = (PROJECT_ROOT/ "plugins"/ "_browser"@@ -664,7 +664,7 @@ def test_browser_entry_points_prefer_canvas_and_modal_dock_handoff():/ "webui"/ "chat-input-bottom-actions-start"/ "browser-button.html"- ).read_text(encoding="utf-8")+ )tool_handler = (PROJECT_ROOT/ "plugins"@@ -701,10 +701,7 @@ def test_browser_entry_points_prefer_canvas_and_modal_dock_handoff():modals_js = (PROJECT_ROOT / "webui" / "js" / "modals.js").read_text(encoding="utf-8")surfaces_js = (PROJECT_ROOT / "webui" / "js" / "surfaces.js").read_text(encoding="utf-8")- assert "Open Browser" in button_html- assert "import('/js/surfaces.js')" in button_html- assert "open('browser')" in button_html- assert "$store.rightCanvas.toggle('browser')" not in button_html+ assert not browser_button_path.exists()assert 'defaultOpenMode: "modal"' not in register_jsassert "beginDockHandoff()" in register_jsassert "beginSurfaceHandoff" in register_js