Skip to content

Harden CDP page target creation#382

Open
sk8erboi17 wants to merge 2 commits into
antirez:mainfrom
sk8erboi17:fix/web-open-tab-cdp-retry
Open

Harden CDP page target creation#382
sk8erboi17 wants to merge 2 commits into
antirez:mainfrom
sk8erboi17:fix/web-open-tab-cdp-retry

Conversation

@sk8erboi17

Copy link
Copy Markdown

Chrome/CDP can occasionally fail to return a targetId after Target.createTarget, causing the web tool to stop with the generic error Chrome did not return a page target id`.

This patch makes tab creation more robust by retrying Target.createTarget, surfacing the real CDP error when available, and falling back to DevTools HTTP /json/new before failing.

Add retries, CDP error reporting, and a DevTools HTTP fallback when Chrome does not return a page target id.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant