fix(studio): thread the sidecar auth token through the Vite dev adapter

startVstSidecar's Vite dev-mode adapter dropped the token field from
its response, so the browser's WebSocket handshake to the VST sidecar
was rejected under the auth check added for the security fix — the FX
panel and live preview both silently fell back to the "not available"
state. The CLI's embedded-mode adapter already passed the token
through correctly; this file's the missing sibling.

Found via manual end-to-end testing: packages/studio/vite.adapter.ts
sits outside packages/studio/tsconfig.json's `include: ["src"]`, so
`tsc --noEmit` never type-checked it and the missing field slipped
through review.
This commit is contained in:
Vance Ingalls
2026-07-16 18:53:17 -07:00
parent acdec1310c
commit ce081d4b64
+2 -2
View File
@@ -390,8 +390,8 @@ export function createViteAdapter(dataDir: string, server: ViteDevServer): Studi
},
startVstSidecar: async () => {
const { port } = await startVstSidecar();
return { port };
const { port, token } = await startVstSidecar();
return { port, token };
},
getVstSidecarStatus: () => {