Skip to content

fix(webui): pass custom CLI args correctly for electron-vite 5#1408

Merged
IceyLiu merged 1 commit intomainfrom
fix/webui-electron-vite5-cli-args-v2
Mar 18, 2026
Merged

fix(webui): pass custom CLI args correctly for electron-vite 5#1408
IceyLiu merged 1 commit intomainfrom
fix/webui-electron-vite5-cli-args-v2

Conversation

@kaizhou-lab
Copy link
Copy Markdown
Collaborator

Summary

  • Fix bun run webui failing with CACError: Unknown option --webui after electron-vite 5 upgrade
  • Call electron-vite dev directly with -- separator instead of going through bun run cli
  • Affects webui, webui:remote, webui:prod, webui:prod:remote, and resetpass scripts

Closes #1406

electron-vite 5 uses cac which strictly validates CLI options.
The `--webui` / `--remote` / `--resetpass` flags are custom args for
the Electron main process, not electron-vite options.

Call `electron-vite dev` directly with `--` separator so cac treats
them as passthrough args via `options['--']` → `ELECTRON_CLI_ARGS`.

Closes #1406
@IceyLiu IceyLiu merged commit 5e08b27 into main Mar 18, 2026
4 checks passed
@piorpua piorpua deleted the fix/webui-electron-vite5-cli-args-v2 branch March 18, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: bun run webui fails with electron-vite 5 due to unknown --webui option

2 participants