Skip to content

Serve live UI during dev CLI sessions#839

Open
RhysSullivan wants to merge 2 commits into
mainfrom
dev-cli-vite-proxy
Open

Serve live UI during dev CLI sessions#839
RhysSullivan wants to merge 2 commits into
mainfrom
dev-cli-vite-proxy

Conversation

@RhysSullivan
Copy link
Copy Markdown
Owner

@RhysSullivan RhysSullivan commented May 17, 2026

Summary

  • start a Vite child server when the local daemon runs with EXECUTOR_DEV=1
  • proxy SPA and asset requests to Vite while keeping API and MCP routes on the daemon
  • configure Vite HMR to connect directly to the child server port

Verification

  • bunx oxfmt --check apps/local/src/serve.ts apps/local/vite.config.ts

Stack

  • This is PR 1 of 3.

Stack

  1. Serve live UI during dev CLI sessions #839 👈 current
  2. Match daemon scope before reuse #840
  3. Expand agent-facing Executor configuration tools #841

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 17, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 59ed913 Commit Preview URL

Branch Preview URL
May 19 2026, 01:40 AM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 17, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 59ed913 May 19 2026, 01:40 AM

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 17, 2026

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@839

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@839

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@839

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@839

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@839

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@839

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@839

@executor-js/plugin-google-discovery

npm i https://pkg.pr.new/@executor-js/plugin-google-discovery@839

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@839

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@839

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@839

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@839

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@839

executor

npm i https://pkg.pr.new/executor@839

commit: 59ed913

When EXECUTOR_DEV=1 (set by the root dev:cli script), the daemon spawns
`vite dev` as a child on a free port and proxies non-API requests to it,
so source edits land without rebuilding the static dist bundle. The HMR
WebSocket is pointed at vite's own port via clientPort so the browser
sidesteps the daemon's lack of WS proxying.

AGENTS.md notes the stack CLI convention while it's nearby.
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