When --cdp is given an HTTP/HTTPS URL (e.g. http://host:5095?mode=Hello), resolve_cdp_url extracts host and port for CDP discovery but discards the query string. The discovered WebSocket URL therefore never includes the user's original query parameters, breaking relay servers that depend on them. Thread the original query string through discover_cdp_url and append it to the final WebSocket URL after host/port rewriting. WebSocket URLs (ws://, wss://) are already passed through unchanged and are unaffected. Fixes #977 Co-authored-by: ctate <366502+ctate@users.noreply.github.com>