Skip to content

Tell Project agents to use the built-in browser - #42

Merged
nickrroberts merged 1 commit into
mainfrom
feat/agents-builtin-browser
Sep 29, 2026
Merged

nickrroberts merged 1 commit into
mainfrom
feat/agents-builtin-browser

Conversation

@nickrroberts

Copy link
Copy Markdown
Collaborator
  • Coordinator prompt: when delegating, tell each agent to use the built-in Control Plane browser (preview_* tools), not the user's own browser.
  • Agent prompt (one-off and standing, inline and pointer): use the built-in browser for browsing, testing and screenshots. Do not launch or drive the user's desktop browsers. Only when a task explicitly needs the user's logged-in session, open the URL in their default browser with open <url>.
  • Tests in assistantRuntime.test.ts assert the exact text for each role and both prompt variants.

Preview tool availability: agent threads started via cp_agent_create go through the same ProviderService path as any thread, so they get the preview capability when enableAgentBrowserAccess is on (default true, per-project override possible). No wiring change needed. A preview call can still fail with no available host if no desktop client is attached to that environment.

Local checks: assistantRuntime tests 21/21, typecheck 0 errors, lint exit 0 (warnings only). Full server suite: 10 files / 51 tests fail identically on main; 1 extra (GrokAdapter, timing flake under load) passes in isolation.

🤖 Generated with Claude Code

The coordinator now instructs delegated agents to use the built-in Control
Plane browser (preview_* tools), and every Project agent is told to use it
for browsing, testing and screenshots instead of the user's desktop browsers.
A task that needs the user's logged-in session opens the default browser via
the OS.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nickrroberts
nickrroberts merged commit b7744df into main Sep 29, 2026
3 of 12 checks passed
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:S labels Sep 29, 2026
@nickrroberts
nickrroberts deleted the feat/agents-builtin-browser branch September 29, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant