Skip to content

Improve target discovery defaults#1

Merged
V3RON merged 3 commits intomasterfrom
feat/url-free-target-select
May 5, 2026
Merged

Improve target discovery defaults#1
V3RON merged 3 commits intomasterfrom
feat/url-free-target-select

Conversation

@V3RON
Copy link
Copy Markdown
Contributor

@V3RON V3RON commented May 5, 2026

Summary

Users can now run agent-cdp target list without --url to scan the default local Chrome, Node.js, and React Native CDP endpoints, then select any returned target with agent-cdp target select <id> without repeating the URL.

Context

Target ids now embed the discovery source using a base64url-encoded source segment, which keeps ids stable across Chrome, Node.js, React Native, and arbitrary custom discovery URLs. Selection decodes the source from the id, narrows discovery to that endpoint, and still allows --url as an optional consistency check.

Proposed Testing Scenario

Start a Chrome instance with remote debugging on 9222, a Node.js process with --inspect, or a React Native Metro server on 8081, then run agent-cdp target list without --url and verify that targets from the available endpoints are listed with source-aware ids. Select one of those ids with agent-cdp target select <id> and confirm follow-up commands use the chosen target without providing --url; optionally retry with a matching and mismatching --url to confirm the consistency check behavior.

@V3RON V3RON merged commit 54c2b63 into master May 5, 2026
3 checks passed
@V3RON V3RON deleted the feat/url-free-target-select branch May 5, 2026 07:22
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