-
-
Notifications
You must be signed in to change notification settings - Fork 40.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
The browser extension relay (profile=chrome) returns stale tab data from /json/list even after the actual CDP connections to those tabs have died.
Steps to Reproduce
- Attach the OpenClaw browser extension to multiple Chrome tabs
- Verify tabs are accessible via
browsertool (snapshot works) - Leave the computer (let Chrome idle/sleep for 10-20 minutes)
- Try to use
browsertool again
Expected Behavior
Either:
/json/listshould return empty or error when connections are stale- Or the relay should auto-detect dead connections and clean up the cache
Actual Behavior
curl http://127.0.0.1:18792/json/listreturns 4 tabs ✅curl http://127.0.0.1:18792/json/protocol/<tab_id>returns "not found" ❌browser snapshotfails with "tab not found"
The tab list endpoint gives false confidence that tabs are available.
Debug Info
# Tab list shows tabs
curl -s http://127.0.0.1:18792/json/list | jq length
# Returns: 4
# But individual tabs are not accessible
curl -s http://127.0.0.1:18792/json/protocol/50F31EEB9A7693F8006EF61D96CE85E6
# Returns: not foundSuggested Fix
- Add heartbeat/keepalive ping to detect dead tab connections
- Invalidate cache entries when connections fail
- Return accurate state from
/json/list(only live connections)
Environment
- OpenClaw: latest (npm)
- OS: Windows 11 + WSL2 (Ubuntu 24.04)
- Chrome: Latest stable
- Extension: OpenClaw Browser Relay
Workaround
Re-click the extension icon on a tab to re-establish fresh CDP connections.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working