fix(onboard): bake the ZeroClaw dashboard into the app (correct web/dist path)

Phase 2's "Open your agent" opens the node's :8080/ dashboard, but the
packager looked for web-dist (wrong) so it was skipped — the gateway then
served "Web dashboard not available". The built dashboard is at web/dist
(cargo xtask web build); carry that into the app's web-dist so :8080/ serves
it. Verified: dashboard + assets load from the board; the rebuilt import zip
includes it (~3.2M).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
Omar Sobh
2026-07-22 18:15:17 -07:00
co-authored by Claude Opus 4.8
parent b335875509
commit d3011130a3
+8 -4
View File
@@ -76,11 +76,15 @@ GATEWAY_PORT=8080
EOF EOF
ok "apess-node.env (APESS_URL=$APESS_URL)" ok "apess-node.env (APESS_URL=$APESS_URL)"
# Optional embedded ZeroClaw dashboard (served at :8080/). Carried if present. # Embedded ZeroClaw dashboard (served at :8080/ — the "Open your agent" link in
if [ -d "$HOME/projects/zeroclaw/web-dist" ]; then # Phase 2). Built by `cargo xtask web build` into web/dist; config points
cp -r "$HOME/projects/zeroclaw/web-dist" "$OUT/web-dist"; ok "web dashboard" # web_dist_dir at /app/web-dist, so carry it there.
WEB_DIST="${WEB_DIST:-$HOME/projects/zeroclaw/web/dist}"
if [ -f "$WEB_DIST/index.html" ]; then
cp -r "$WEB_DIST" "$OUT/web-dist"; ok "web dashboard ($(du -sh "$WEB_DIST" | cut -f1))"
else else
echo " (no web-dist — the node dashboard link will 404; students use the APESS wizard)" echo " (!) no dashboard at $WEB_DIST — build it: (cd zeroclaw && cargo xtask web build)."
echo " Without it, Phase 2's 'Open your agent' shows 'dashboard not available'."
fi fi
ok "bundle ready: $OUT" ok "bundle ready: $OUT"