Skip to content

fix(automation): keep browser previews headless and thread scoped - #856

Merged
nixuuu merged 1 commit into
devfrom
fix/headless-browser-preview
Nov 16, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/headless-browser-preview

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 16, 2026

Copy link
Copy Markdown
Member

Change

Browser tools could run in a model-selected session such as demo, leaving Preview attached to an empty thread session. A local headed: true configuration could also open a visible window or restart Chrome while Preview measured the viewport.

Pin Browser MCP calls to the thread session and enforce headless mode in MCP, Preview commands, and explicit browser navigation. Reject session, namespace, and headed overrides before authorization. Preserve automatic preview activity for the injected headless arguments. Tool descriptions and errors explain the single-session boundary, shared login state across tabs, and the instruction to explain limitations instead of bypassing them. Update automation documentation.

Verification

  • Selective check:tmp runs passed for browser adapters, Preview streaming/input, MCP bridge and browser policy, and automation activity over WorkerLink/UI gRPC, including linked-computer routing. Relevant reruns passed after subsequent changes.
  • Worker typecheck, scoped lint/format checks, and diff checks passed.
  • Real agent-browser 0.43.0 with headed: true configuration: Open and New Tab stayed headless. Starting BrowserPreview before MCP navigation produced a JPEG frame at 1280 × 633 with the correct thread-session URL.
  • Full repository verification and builds are left to CI. No frontend UI changes; copy audit §8 is not applicable to UI text (changed descriptions/errors are model-facing MCP instructions).

Fixes: #846

Pin Browser MCP calls to the thread session, enforce headless arguments in MCP and Preview commands, and explain the session boundary to agents.

Fixes: #846
@nixuuu
nixuuu enabled auto-merge (squash) November 16, 2026 06:55
@nixuuu
nixuuu merged commit 2e89e62 into dev Nov 16, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/headless-browser-preview branch November 16, 2026 07:07
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