Skip to content

Conversation

@stevegmf
Copy link
Contributor

@stevegmf stevegmf commented Oct 15, 2025

Description

AgentCoreBrowser has some issue to use browser extension due to Playwright non-persistent context is using. This blocks Strands agent customer using session replay feature.

When customers use Playwright to connect to AgentCore browser (for example, via connectOverCDP()), any code that creates a non-persistent browser context (e.g. browser.newContext()) will find that Chrome extensions do not run inside that context — even if the remote browser itself was launched with extensions enabled.

Customer experience:

  • Browser extensions appear missing or inactive.
  • Session recording functionality (e.g. DOM event capture) does not work.
  • No explicit error message — behavior silently differs from the persistent profile.

When this occurs:

  • Customer connects Playwright to an existing browser via CDP.
  • Customer creates new contexts using browser.newContext() instead of reusing or launching a persistent profile.

Related Issues

Issue is found during test

Documentation PR

N/A

Type of Change

Bug fix

Testing

How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli

  • [V] I ran hatch run prepare
  • [V] Manual test custom browser

After the fix, session replay feature works.

image

Checklist

  • [V] I have read the CONTRIBUTING document
  • [V] I have added any necessary tests that prove my fix is effective or my feature works
  • [V] I have updated the documentation accordingly
  • [V] I have added an appropriate example to the documentation to outline the feature
  • [V] My changes generate no new warnings
  • [V] Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@stevegmf stevegmf requested a review from a team as a code owner October 15, 2025 20:27
dbschmigelski
dbschmigelski previously approved these changes Oct 16, 2025
@dbschmigelski dbschmigelski merged commit 8e663df into strands-agents:main Oct 17, 2025
16 checks passed
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.

3 participants