-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Closed
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested
Description
Bug Description
Browser relay loses connection to all tabs after switching the attached tab. Tabs are listed in the CDP endpoint but all actions (snapshot, navigate, click, etc.) return "tab not found".
Steps to Reproduce
- Start browser relay with Chrome extension profile
- Attach Tab A (e.g., midjourney.com) via extension icon → Badge shows "ON"
- Perform actions on Tab A → Works correctly (snapshot, click, navigate, clipboard read)
- Switch to Tab B (e.g., discord.com) in Chrome
- Click extension icon on Tab B to attach it → Badge shows "ON"
- Try to perform actions on Tab B → Fails with 'tab not found'
- Try Tab A again → Also fails now
Expected Behavior
After attaching Tab B, actions should work on Tab B.
Actual Behavior
{
"status": "error",
"tool": "browser",
"error": "404: {\"error\":\"Error: tab not found\"}"
}Meanwhile:
browser statusshowscdpReady: true,cdpHttp: truebrowser tabslists all tabs with valid targetIdscurl http://127.0.0.1:18792/json/listreturns all tabs correctly- But NO tab is controllable (including the original Tab A)
Debug Info
# Status shows everything green
curl http://127.0.0.1:18791/
# {"enabled":true,"cdpReady":true,"cdpHttp":true,...}
# Tabs are listed
curl http://127.0.0.1:18792/json/list
# Returns array with all tabs, valid IDs
# But snapshot fails for ANY tab
curl http://127.0.0.1:18791/snapshot
# {"error":"Error: tab not found"}Environment
- Clawdbot: Latest npm install
- OS: Windows 11 + WSL2 (Linux 6.6.87.2-microsoft-standard-WSL2)
- Browser: Chrome (Windows side)
- Extension: Clawdbot Browser Relay (loaded unpacked)
- Ports: Control 18791, CDP 18792
Workaround
Complete restart of the browser control server is required. Clicking Cancel/re-attaching does not help.
Notes
- Single WebSocket endpoint shared by all tabs (
ws://127.0.0.1:18792/cdp) - Issue may be related to
chrome.debuggerdetach/reattach handling in the extension - Once broken, even NEW tabs that are attached also fail
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested