fix(webui): anchor sent prompts during active turns

This commit is contained in:
Xubin Ren
2026-06-22 20:43:27 +08:00
parent fbaa85117b
commit 7170761e47
9 changed files with 333 additions and 56 deletions
+10 -5
View File
@@ -15,11 +15,16 @@ export default defineConfig(({ mode }) => {
},
},
optimizeDeps: {
// Radix dialog was introduced mid-session for the mobile sidebar sheet.
// When Vite re-optimizes it on a running dev server, the browser can race
// and request stale chunk paths from `.vite/deps`. Excluding it keeps dev
// reloads stable instead of rewriting those chunk filenames under us.
exclude: ["@radix-ui/react-dialog"],
// Keep dev reloads stable for dependencies that can rewrite generated
// optimizer chunk filenames while a browser tab is still running. Do not
// exclude the markdown/remark/rehype chain: Vite's pre-bundling is needed
// there for CommonJS interop such as style-to-js.
exclude: [
"@radix-ui/react-dialog",
"react-syntax-highlighter/dist/esm/prism-async-light",
"react-syntax-highlighter/dist/esm/styles/prism/one-dark",
"react-syntax-highlighter/dist/esm/styles/prism/one-light",
],
},
build: {
outDir: path.resolve(__dirname, "../nanobot/web/dist"),