Skip to content

fix(vite): show unavailable tips in standalone mode - #544

Open
webfansplz wants to merge 1 commit into
mainfrom
fix/vite-standalone-mode-tips
Open

fix(vite): show unavailable tips in standalone mode#544
webfansplz wants to merge 1 commit into
mainfrom
fix/vite-standalone-mode-tips

Conversation

@webfansplz

Copy link
Copy Markdown
Member

Screenshot:

iShot_2026-08-23_21 18 36

Copilot AI lite review requested due to automatic review settings August 23, 2026 13:24
@pkg-pr-new

pkg-pr-new Bot commented Aug 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vitejs/devtools

npm i https://pkg.pr.new/@vitejs/devtools@544

@vitejs/devtools-kit

npm i https://pkg.pr.new/@vitejs/devtools-kit@544

@vitejs/devtools-oxc

npm i https://pkg.pr.new/@vitejs/devtools-oxc@544

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/@vitejs/devtools-rolldown@544

@vitejs/devtools-vite

npm i https://pkg.pr.new/@vitejs/devtools-vite@544

@vitejs/devtools-vitest

npm i https://pkg.pr.new/@vitejs/devtools-vitest@544

commit: 9a72e45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the @vitejs/devtools-vite client app to detect whether the Vite inspect RPC surface is available and, when it isn’t (e.g. standalone/non-dev environment), show an explicit “unavailable” tip instead of leaving the UI in a confusing state.

Changes:

  • Add an inspectStatus state machine (checking | available | unavailable) to the Vite app RPC connection state.
  • Probe server RPC capabilities via devtoolskit:internal:rpc:server:list and only subscribe to inspect module updates when inspect RPC is available.
  • Update the app shell to show a loading state while capabilities are being checked and an unavailable tip when inspect RPC is missing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/vite/src/app/composables/rpc.ts Tracks inspect capability, resets connection state on connect, and gates inspect subscriptions based on server RPC availability.
packages/vite/src/app/app.vue Adds UI states for “checking” and “inspect unavailable” to display a tip instead of rendering the main app.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/vite/src/app/composables/rpc.ts
@webfansplz
webfansplz force-pushed the fix/vite-standalone-mode-tips branch from 23b10c3 to 9a72e45 Compare August 23, 2026 13:30
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.

2 participants