close alias for BrowserSession stop

thousands of users have attempted to use close, so why not add it
This commit is contained in:
Laith Weinberger
2026-04-12 17:43:04 -04:00
parent 92d3d152a2
commit c1eb87a35f

View File

@@ -721,6 +721,10 @@ class BrowserSession(BaseModel):
# Create fresh event bus
self.event_bus = EventBus()
async def close(self) -> None:
"""Alias for stop()."""
await self.stop()
@observe_debug(ignore_input=True, ignore_output=True, name='browser_start_event_handler')
async def on_BrowserStartEvent(self, event: BrowserStartEvent) -> dict[str, str]:
"""Handle browser start request.