Skip to content

chore: WebUI dev server serves stale cached renderer files #1381

@kaizhou-lab

Description

@kaizhou-lab

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions