Feature/webview cdp proxy #2820
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
wsh web cdplists web widgets,wsh web open --cdpcreates + enables in one step (with a short retry for webview readiness).Guardrails / Security
debug:webcdp=trueis required; otherwisewsh web cdp startfails with a clear error.127.0.0.1(no non-loopback listen option)./__wave_cdp/<secret>/...for WS and/json/listto reduce accidental discovery; root/json/listreturns 404.debug:remotedebugportvalidated (1–65535) and bound to loopback.UX Details
wsh web cdpshows web widgets in the current workspace with CDP status + WS URL if active.wsh web cdp startwithout-buses the current web block if possible; otherwise it lists web widgets and hints to use-b.wsh web open --cdp(or-c) creates a web widget and starts CDP; includes a brief retry to handle async WebContents creation.Testing
go test ./cmd/wsh/cmdgo build ./cmd/wshdebug:webcdpgatewsh web cdplistingwsh web open --cdpsuccess/json/listworks; root/json/list404s