Studio Web: selectable SecEx backend to create and list sandbox sites in the browser#3838
Draft
lezama wants to merge 11 commits into
Draft
Studio Web: selectable SecEx backend to create and list sandbox sites in the browser#3838lezama wants to merge 11 commits into
lezama wants to merge 11 commits into
Conversation
…a CLI web-server command Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…e owner for UI-mode storage, cache site list in web connector Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…merge Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…skip SSE work with no clients Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… the exploration PR Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…/api namespace Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ites in the browser Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related issues
trunk).How AI was used in this PR
The code and this PR description were drafted with Claude Code under close direction, porting a connector that already worked in the exploration onto the cleaner foundation in #3816. I reviewed the diff, and the verification steps (typecheck across all workspaces, lint, and the full
apps/uitest suite — 233 tests) were run on this branch after merging the latest base.Proposed Changes
#3816 runs Studio's portable renderer in a browser against a local
studio web-server, which can list the signed-in user's WordPress.com sites but is read-only — it can't create anything. This increment adds a second, opt-in backend that gives Studio Web its first real write capability.The browser can now talk directly to the hosted Studio Code endpoint on WordPress.com (a SecEx sandbox), selected at build time with
VITE_STUDIO_BACKEND=secex. In that mode a signed-in user can ask the agent to create a WordPress site in the sandbox and have it show up in their session list — all from a plain browser tab, no desktop app. Because this path reaches WordPress.com directly with the user's own token, it brings in a lightweight WordPress.com login screen for the browser.The default local web-server backend from #3816 is untouched: nothing changes unless you explicitly build with the SecEx flag. Scope is deliberately narrow — create and list. A live, client-side preview of what the agent built (the "Carril A" loop from the exploration) is a separate follow-up; the connector already exposes the
getSiteFilesseam that preview will consume.This is a Proof of Concept: it lifts a ~1,200-line connector from the exploration onto the foundation to validate the "selectable backend" shape end to end. Architecture, tests, and polish would need another pass before this is merge-ready.
Testing Instructions
npm install.VITE_STUDIO_BACKEND=secex npm run dev:web --workspace=apps/uiand openhttp://localhost:5300.VITE_STUDIO_SECEX_RUN_URLif needed.VITE_STUDIO_WPCOM_TOKENfor scripted runs).VITE_STUDIO_BACKEND=secexand the local web-server connector behaves exactly as in Studio Web: run the portable UI in a browser via a web connector and a CLI web-server command #3816.Pre-merge Checklist