The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(prompt-surface): re-render after browser_dialog drops pending_dialogs
Teknium39539ecad0ad
diff --git a/tests/fixtures/prompt_surface/surfaces.json b/tests/fixtures/prompt_surface/surfaces.jsonindex e330290164d..c302ca050cf 100644--- a/tests/fixtures/prompt_surface/surfaces.json+++ b/tests/fixtures/prompt_surface/surfaces.json@@ -5,7 +5,7 @@"stable": 1935,"volatile": 1813},- "tool_tokens": 11542,+ "tool_tokens": 11532,"tools": ["browser_cdp","browser_dialog",@@ -38,7 +38,7 @@"stable": 1445,"volatile": 1813},- "tool_tokens": 11542,+ "tool_tokens": 11532,"tools": ["browser_cdp","browser_dialog",@@ -71,7 +71,7 @@"stable": 1866,"volatile": 1811},- "tool_tokens": 11542,+ "tool_tokens": 11532,"tools": ["browser_cdp","browser_dialog",@@ -104,7 +104,7 @@"stable": 2640,"volatile": 1809},- "tool_tokens": 11697,+ "tool_tokens": 11688,"tools": ["browser_cdp","browser_dialog",@@ -137,7 +137,7 @@"stable": 1445,"volatile": 1813},- "tool_tokens": 11542,+ "tool_tokens": 11532,"tools": ["browser_cdp","browser_dialog",@@ -170,7 +170,7 @@"stable": 1317,"volatile": 1813},- "tool_tokens": 11542,+ "tool_tokens": 11532,"tools": ["browser_cdp","browser_dialog",@@ -203,7 +203,7 @@"stable": 1579,"volatile": 1814},- "tool_tokens": 12176,+ "tool_tokens": 12166,"tools": ["browser_cdp","browser_dialog",@@ -237,7 +237,7 @@"stable": 1349,"volatile": 1814},- "tool_tokens": 11542,+ "tool_tokens": 11532,"tools": ["browser_cdp","browser_dialog",@@ -270,7 +270,7 @@"stable": 1382,"volatile": 1814},- "tool_tokens": 11542,+ "tool_tokens": 11532,"tools": ["browser_cdp","browser_dialog",diff --git a/tests/fixtures/prompt_surface/tools/browser_dialog.json b/tests/fixtures/prompt_surface/tools/browser_dialog.jsonindex 3ea573d6b3c..1ee6a9f708f 100644--- a/tests/fixtures/prompt_surface/tools/browser_dialog.json+++ b/tests/fixtures/prompt_surface/tools/browser_dialog.json@@ -1,5 +1,5 @@{- "description": "Respond to a native JavaScript dialog (alert / confirm / prompt / beforeunload) that is currently blocking the page.\n\n**Workflow:** when a dialog is open, the browser_exec result lists it in the ``pending_dialogs`` field with ``id``, ``type``, and ``message``. Then call this tool with ``action='accept'`` or ``action='dismiss'``.\n\n**Prompt dialogs:** pass ``prompt_text`` to supply the response string. Ignored for alert/confirm/beforeunload.\n\n**Multiple dialogs:** if more than one dialog is queued (rare — happens when a second dialog fires while the first is still open), pass ``dialog_id`` from ``pending_dialogs`` to disambiguate.\n\n**Availability:** only present when a CDP endpoint is attached — a local Chromium-family browser via ``/browser connect``, or ``browser.cdp_url`` in config.yaml.",+ "description": "Respond to a native JavaScript dialog (alert / confirm / prompt / beforeunload) that is currently blocking the page.\n\n**Workflow:** when a page is blocked by a native dialog the CDP supervisor captured, call this tool with ``action='accept'`` or ``action='dismiss'``.\n\n**Prompt dialogs:** pass ``prompt_text`` to supply the response string. Ignored for alert/confirm/beforeunload.\n\n**Multiple dialogs:** if more than one dialog is queued (rare — happens when a second dialog fires while the first is still open), pass ``dialog_id`` (the error lists the candidates) to disambiguate.\n\n**Availability:** only present when a CDP endpoint is attached — a local Chromium-family browser via ``/browser connect``, or ``browser.cdp_url`` in config.yaml.","name": "browser_dialog","parameters": {"properties": {@@ -12,7 +12,7 @@"type": "string"},"dialog_id": {- "description": "Specific dialog to respond to, from ``pending_dialogs[].id``. Required only when multiple dialogs are queued.",+ "description": "Specific dialog to respond to, from the candidate ids a previous call listed. Required only when multiple dialogs are queued.","type": "string"},"prompt_text": {