Skip to content

Browser tab - #12

Merged
juzaweb merged 2 commits into
mainfrom
browser-tab
Oct 11, 2026
Merged

juzaweb merged 2 commits into
mainfrom
browser-tab

Conversation

@juzaweb

@juzaweb juzaweb commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

- Add a browser module (service + router) that runs one
  agent-browser session per user/project, proxies its WebSocket
  stream, and exposes navigate, viewport, insert-text, selection,
  and history endpoints.
- Render streamed frames in a new BrowserTab canvas with pointer,
  wheel, keyboard, IME, and clipboard input, plus reconnection.
- Apply session TTL, LRU eviction, origin checks, and auth so the
  tab and the AI agent share a single sandboxed browser.
- Install agent-browser and Chrome in the image and document setup
  and troubleshooting.
- Inject an init script that forces target links to `_self` and
  redirects simple `window.open(url)` calls into the current tab,
  while preserving popup-style calls for OAuth logins.
- Pass the script to agent-browser via `--init-script` when present
  so a spawned tab cannot open invisibly without a tab bar.
- Add `pointer-events-none` to the hidden caret textarea so it no
  longer intercepts clicks on the streamed viewport.
@juzaweb
juzaweb merged commit 07f20ad into main Oct 11, 2026
4 checks passed
@juzaweb
juzaweb deleted the browser-tab branch October 11, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant