posthog icon indicating copy to clipboard operation
posthog copied to clipboard

feat(ph-ai): browser use mode

Open kappa90 opened this issue 1 month ago • 3 comments

Problem

Adding browser automation capabilities to the AI assistant, allowing it to interact with websites through a headless browser to help users test user flows, reproduce bugs, and provide UX feedback.

Changes

  • Added a new browser_use agent mode that enables browser automation capabilities
  • Implemented BrowserNavigateTool for navigating to websites
  • Added support for Anthropic's native computer tool for browser interactions (clicking, typing, scrolling, etc.)
  • Created BrowserSessionManager to manage browser sessions using Hyperbrowser
  • Added automatic cleanup of browser sessions when conversations end
  • Added feature flag phai-browser-use to control access to the new functionality
  • Updated UI to support displaying screenshots and browser interactions

How did you test this code?

Local + tests TBD

kappa90 avatar Dec 09 '25 21:12 kappa90

[!WARNING] This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

kappa90 avatar Dec 09 '25 21:12 kappa90

Wiz Scan Summary

⚠️ Many findings detected
Many findings were detected, but only a subset of the findings are displayed inline due to API constraints. To view all findings inline, please click here.
Scanner Findings
Vulnerability Finding Vulnerabilities 22 High 22 Medium 13 Low
Data Finding Sensitive Data 1 Info
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Total 22 High 22 Medium 13 Low 1 Info

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

wiz-7ad640923b[bot] avatar Dec 09 '25 21:12 wiz-7ad640923b[bot]

Visual regression: Storybook UI snapshots updated

Changes: 2 snapshots (2 modified, 0 added, 0 deleted)

What this means:

  • Snapshots have been automatically updated to match current rendering
  • Next CI run will switch to CHECK mode to verify stability
  • If snapshots change again, CHECK mode will fail (indicates flapping)

Next steps:

  • Review the changes to ensure they're intentional
  • Approve if changes match your expectations
  • If unexpected, investigate component rendering

Review snapshot changes →

posthog-bot avatar Dec 09 '25 22:12 posthog-bot