Commit 0eb34f0
committed
fix(serve): run the event loop so the setup hook actually fires
Root cause of the Stage 3 cold-start 503: helmor serve started, Xvfb was
up, env was correct (HOME=/root, port 8080) — but no data dir, no logs, and
nothing listening on 8080. The Tauri `setup` hook (which runs init_core +
serve::setup, the companion bind) only fires once the event loop runs, and
serve() merely parked the main thread, so setup never executed: the process
was alive but completely uninitialised.
Replace the park loop with app.run() (matching the desktop path) + an
ExitRequested prevent_exit so the windowless app stays alive. The serve smoke
test only exercised start_serve() directly, never the full serve() path, so
it missed this. The D-α 'no app.run() needed' assumption was wrong.1 parent 5608ab7 commit 0eb34f0
1 file changed
Lines changed: 15 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
888 | 889 | | |
889 | 890 | | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
897 | 898 | | |
898 | 899 | | |
899 | 900 | | |
| |||
0 commit comments