fix: browser integration for AI research agent
Deploy Research Workbench / deploy (push) Failing after 10m12s
Deploy Research Workbench / deploy (push) Failing after 10m12s
- Dockerfile: Install Google Chrome stable instead of Playwright npm package (playwright-cli defaults to /opt/google/chrome/chrome path). Removed unused Playwright npm package, kept Playwright Python for page automation. - bundle/bundle.md: Fix orchestrator config override with correct key path (session.orchestrator.config.extended_thinking: false) to properly override foundation's extended_thinking: true default, which was causing empty AI text responses. - bundle/agents/researcher.md: Add strong pre-installed environment guardrail telling agent NOT to install packages. Add explicit bash() tool call examples showing correct playwright-cli syntax. Fix snapshot command (removed non-existent -ic flag), change 'type' to 'fill' for form field syntax. - bundle/context/researcher-instructions.md: Enrich from thin pointer to concrete examples with correct bash() wrapping and actual playwright-cli commands. Add 'do NOT install' guardrail. Validated: Agent now opens Chrome browser during research queries, noVNC panel shows live browser activity, AI generates text responses properly. Generated with Amplifier Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
This commit is contained in:
+6
-5
@@ -33,13 +33,14 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
||||
&& apt-get install -y --no-install-recommends nodejs \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# ── npm global tools: @playwright/cli + Chromium browser ──────────────────────
|
||||
# ── npm global tools: @playwright/cli + Chrome ────────────────────────────────
|
||||
# @playwright/cli — token-efficient browser CLI used by research agents
|
||||
# (playwright-cli -s=research open/snapshot/click/type …)
|
||||
# playwright — provides `playwright install` to download managed Chromium
|
||||
# Chromium is installed to /root/.cache/ms-playwright/ (default for root user)
|
||||
RUN npm install -g @playwright/cli playwright \
|
||||
&& playwright install chromium
|
||||
# playwright-cli defaults to Chrome at /opt/google/chrome/chrome. Install it directly.
|
||||
RUN npm install -g @playwright/cli \
|
||||
&& curl -fsSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /tmp/chrome.deb \
|
||||
&& apt-get update && apt-get install -y /tmp/chrome.deb \
|
||||
&& rm -f /tmp/chrome.deb && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# ── Python tooling ────────────────────────────────────────────────────────────
|
||||
RUN pip install uv
|
||||
|
||||
Reference in New Issue
Block a user