From 61a28c7d6c602556947406516a28fe2e4e7494f4 Mon Sep 17 00:00:00 2001 From: JohnWong Date: Mon, 13 Apr 2026 23:22:05 +0800 Subject: [PATCH] fix: include access token in auto-opened dashboard URL CLI --open overrides server.open config, stripping the token. Remove --open from CLI and set server.open to /?token= so the browser opens with the access token already included. Co-Authored-By: Claude Opus 4.6 --- understand-anything-plugin/packages/dashboard/vite.config.ts | 1 + understand-anything-plugin/skills/understand-dashboard/SKILL.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/understand-anything-plugin/packages/dashboard/vite.config.ts b/understand-anything-plugin/packages/dashboard/vite.config.ts index c5fef29..ee8a54a 100644 --- a/understand-anything-plugin/packages/dashboard/vite.config.ts +++ b/understand-anything-plugin/packages/dashboard/vite.config.ts @@ -16,6 +16,7 @@ export default defineConfig({ server: { host: "127.0.0.1", port: 5173, + open: `/?token=${ACCESS_TOKEN}`, }, resolve: { diff --git a/understand-anything-plugin/skills/understand-dashboard/SKILL.md b/understand-anything-plugin/skills/understand-dashboard/SKILL.md index c0bdad3..1ff667b 100644 --- a/understand-anything-plugin/skills/understand-dashboard/SKILL.md +++ b/understand-anything-plugin/skills/understand-dashboard/SKILL.md @@ -56,7 +56,7 @@ Start the Understand Anything dashboard to visualize the knowledge graph for the 5. Start the Vite dev server pointing at the project's knowledge graph: ```bash - cd && GRAPH_DIR= npx vite --host 127.0.0.1 --open + cd && GRAPH_DIR= npx vite --host 127.0.0.1 ``` Run this in the background so the user can continue working.