Problem
When running bun run webui (or bun run start) in dev mode, the WebUI server at port 25809 serves stale files from out/renderer/ if a previous build exists. This causes code changes to not appear in the WebUI, requiring developers to manually delete out/renderer/ to see updates.
Expected behavior
Dev commands should always serve the latest code without manual cache clearing.
Solution
Add rm -rf out/renderer before electron-vite dev in the start and cli scripts so the renderer cache is cleared on every dev startup.
Problem
When running
bun run webui(orbun run start) in dev mode, the WebUI server at port 25809 serves stale files fromout/renderer/if a previous build exists. This causes code changes to not appear in the WebUI, requiring developers to manually deleteout/renderer/to see updates.Expected behavior
Dev commands should always serve the latest code without manual cache clearing.
Solution
Add
rm -rf out/rendererbeforeelectron-vite devin thestartandcliscripts so the renderer cache is cleared on every dev startup.