cdp-tunnel 2.5.6 → 2.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138,8 +138,14 @@ var SpecialHandler = (function() {
138
138
 
139
139
  var groupClientId = clientId;
140
140
  if (!groupClientId) {
141
- Logger.warn('[TabGroup] No clientId for tab:', tabId, '— skipping group operation');
142
- return;
141
+ var cdpClients = State.getCDPClients() || [];
142
+ if (cdpClients.length > 0 && cdpClients[0] && cdpClients[0].id) {
143
+ groupClientId = cdpClients[0].id;
144
+ Logger.warn('[TabGroup] No clientId for tab:', tabId, 'fallback to first client:', groupClientId);
145
+ } else {
146
+ Logger.warn('[TabGroup] No clientId for tab:', tabId, '— skipping group operation');
147
+ return;
148
+ }
143
149
  }
144
150
  var baseName = CDPUtils.getGroupBaseName(groupClientId);
145
151
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "CDP Bridge",
4
- "version": "2.5.6",
4
+ "version": "2.5.7",
5
5
  "description": "Chrome DevTools Protocol Bridge for Playwright/Puppeteer automation",
6
6
  "permissions": [
7
7
  "debugger",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-tunnel",
3
- "version": "2.5.6",
3
+ "version": "2.5.7",
4
4
  "description": "Bridge Chrome's debugger API to WebSocket — control your existing browser with Playwright/Puppeteer via CDP",
5
5
  "main": "server/proxy-server.js",
6
6
  "bin": "./cli/index.js",