-
Notifications
You must be signed in to change notification settings - Fork 1.6k
AgentCore: open returns EOF / about:blank and leaves orphaned READY sessions #1138
Description
Summary
agent-browser 0.24.0 with -p agentcore appears to create AgentCore browser sessions successfully, but open often fails with:
Invalid response: EOF while parsing a value at line 1 column 0
(after 5 retries - daemon may be busy or unresponsive)
When this happens, the browser remains at about:blank, and multiple orphaned READY AgentCore sessions are left behind in AWS.
This reproduces with both:
AGENTCORE_PROFILE_IDsetAGENTCORE_PROFILE_IDunset
So this does not appear to be specific to persisted profiles or to x.com.
Environment
- agent-browser:
0.24.0 - Install method:
npm install -g agent-browser - OS: macOS (Darwin arm64)
- Provider:
agentcore - Region:
us-east-1 - Browser identifier:
aws.browser.v1
Reproduction
agent-browser close --all
agent-browser --session acore-test -p agentcore open "https://example.com"Also reproduced with:
agent-browser --session acore-test -p agentcore open "https://x.com/home"And also reproduced with profile persistence disabled:
env -u AGENTCORE_PROFILE_ID agent-browser --session acore-test -p agentcore open "https://example.com"Actual behavior
openfails with EOF / daemon-unresponsive errorget urlreturnsabout:blankget titleis empty- AWS AgentCore accumulates multiple
READYbrowser sessions from a single failing test flow - those sessions need manual cleanup via
aws bedrock-agentcore stop-browser-session
Example follow-up commands after failure:
agent-browser --session acore-test -p agentcore get url
# about:blank
agent-browser --session acore-test -p agentcore get title
# emptyExpected behavior
openshould either navigate successfully, or fail cleanly without spawning multiple orphaned AgentCore sessions- failed runs should not leave many remote
READYsessions behind
Notes
A clean reinstall did not fix this:
npm uninstall -g agent-browser
npm install -g agent-browserThe issue still reproduced immediately afterward with https://example.com.
Daemon logs suggest that remote AgentCore sessions are being created successfully (session ID + Live View URL are printed), so the failure seems to happen after session creation, likely somewhere in the daemon/provider/session lifecycle or CLI<->daemon response path.