From b319c82a75e9a6488a6454790d1436f74a655e7c Mon Sep 17 00:00:00 2001 From: Tianren Dong Date: Wed, 13 May 2026 02:23:52 -0400 Subject: pi-chrome 0.14.1: harder attachDebugger retry + trusted.debug diagnostic attachDebugger now: - Calls chrome.debugger.getTargets() first and force-detaches any stale CDP session this extension already owns on the target tab before attaching. Stale sessions (left over from SW reloads or sibling detach failures) often surface on the next attach as 'Cannot access a chrome-extension:// URL of different extension'. - Retries up to two more times (180ms + 500ms) instead of once. The 500ms back-off lets Chrome's content-script registration drain on fresh navigations. - Records every attach event (attached, stale-target-found, attach- failed, retry-failed) in a 20-entry ring buffer for inspection. New diagnostic action 'trusted.debug' returns extension version, trusted mode, attached tabs, the inspected tab's URL/status, current chrome.debugger.getTargets() output, and the recent attach-event log. Use to investigate when a specific URL refuses to attach. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 1f155a3..e8354ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pi-chrome", - "version": "0.14.0", + "version": "0.14.1", "description": "Drive your existing logged-in Chrome from Pi — no re-login, no throwaway profile, watch the agent work in real time (or toggle quiet background mode).", "keywords": [ "pi-package", -- cgit v1.2.3