fix(vite): show unavailable tips in standalone mode - #544
Open
webfansplz wants to merge 1 commit into
Open
Conversation
@vitejs/devtools
@vitejs/devtools-kit
@vitejs/devtools-oxc
@vitejs/devtools-rolldown
@vitejs/devtools-vite
@vitejs/devtools-vitest
commit: |
Contributor
There was a problem hiding this comment.
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
inspectStatusstate machine (checking | available | unavailable) to the Vite app RPC connection state. - Probe server RPC capabilities via
devtoolskit:internal:rpc:server:listand 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.
webfansplz
force-pushed
the
fix/vite-standalone-mode-tips
branch
from
August 23, 2026 13:30
23b10c3 to
9a72e45
Compare
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.
Screenshot: