From ce081d4b64cfdade7731c96584a0b47334ef455f Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Wed, 15 Jul 2026 10:35:56 -0700 Subject: [PATCH] fix(studio): thread the sidecar auth token through the Vite dev adapter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- packages/studio/vite.adapter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/studio/vite.adapter.ts b/packages/studio/vite.adapter.ts index 9db3183501..837c529aa5 100644 --- a/packages/studio/vite.adapter.ts +++ b/packages/studio/vite.adapter.ts @@ -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: () => {