fix(browser): keep refresh guidance for a missing CDP target (#6340)

Co-authored-by: Abelo9996 <[email protected]>
This commit is contained in:
Abel YagubyanandAbelo9996 authored and GitHub committed 2026-10-23 02:20:37 +08:00
1 parent 7aee876d81
commit 26bc77ce56
2 files changed
+6 -1

No files matched your search

+2
View File
@@ -21,6 +21,8 @@ export const authorizeCdpTarget = (
if (target === undefined)
throw new BrowserObservationError(operation, "target_not_found", {
detail: `Target ${input.target_id} was not found at the selected endpoint.`,
remediationAction:
"Refresh target discovery for that endpoint and retry with a returned target ID.",
});
const origin = sanitizeBrowserUrl(target.url).origin;
if (