diff options
| author | Tianren Dong <tianrendong.dtr@gmail.com> | 2026-05-13 02:23:52 -0400 |
|---|---|---|
| committer | Tianren Dong <tianrendong.dtr@gmail.com> | 2026-05-13 02:23:52 -0400 |
| commit | b319c82a75e9a6488a6454790d1436f74a655e7c (patch) | |
| tree | c510e62d80b0d2484f0edeba02524624b31f2237 /package.json | |
| parent | 36c2f7e3463eaa7fecb3ceba537813c089f52b3a (diff) | |
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.
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
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", |
