fix: render the live browser panel from the tool's liveUrl

Merged
SH
4mo ago
+27-12

The bug

The Agent's browser panel rendered empty even while the agent was on a page. extractLiveUrl scraped the liveUrl from the model's markdown-bolded chat text and captured the trailing **, corrupting the wss host so the live view couldn't connect.

The fix

Read the canonical liveUrl from the open_cloud_browser tool output (structured data) instead of the prose. Origin-safe (only accepts https://live.browser-use.com). Verified the panel now renders the live cloud browser (Hacker News) next to the chat. The cubic sandbox on the iframe stays โ€” it was never the cause.

Also

  • Adds public/banner.png (AmbientHacker-style social-preview card) and uses it at the top of the README.

Typecheck + next build pass.

๐Ÿค– Generated with Claude Code


Summary by cubic

Fixes the Agent browser panel by reading the live URL from the open_cloud_browser tool output, avoiding markdown corruption and restoring the live view. Validates the URL by parsing it (https + exact host live.browser-use.com, no substring matches); adds public/banner.png and updates the README banner.