Commit 1e43660
committed
fix(webui-tauri): re-wire shell to tools/ui after the tools/server/webui rename
Three coupled regressions surfaced when Markus hit super+A after the
2026-05-16 rebase: the Tauri shell binary was returning HTTP 500 on
/index.html because tools/server/public/ had been emptied by the
rebase (master's PR ggml-org#22937 moved the build sink to build/tools/ui/),
and the existing config kept pointing at the old paths.
Fixes in tauri.conf.json:
- beforeBuildCommand now `cd ../../ui && bun run build && copy → public`.
The old `cd ../webui` path no longer exists; the appended copy step
keeps tools/server/public/ populated so frontendDist resolves on a
fresh checkout without manual intervention.
- beforeDevCommand and devUrl updated to match (and to bind 127.0.0.1
rather than localhost so the dev server doesn't accidentally land on
::1).
- Window URL changed from http://localhost:5173/... → http://127.0.0.1:5173/...
Sidesteps webkit2gtk's IPv6-first localhost resolution entirely. The
embedded tiny-http server is already pinned IPv4 in src/lib.rs:73, so
this makes both ends speak v4 explicitly and any future IPv6 squatter
on 5173 can't intercept the webview.
.gitignore: tools/server/public/ is now a pure build sink, and the
tracked tts-default-ref.mp3 it carried was a stale duplicate of
tools/ui/static/tts-default-ref.mp3 (the SvelteKit canonical static).
Untracked it; the build step recopies the canonical file each time.
Diagnosed and fixed jointly with snoop-kube (cloud) and inventory-dev
(squatter cleanup) via /tmp/app-launch-summit.md.1 parent 6a3c9a1 commit 1e43660
3 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments