Skip to content

fix(wasm): populate SelfSummary mirror fields, flag host-stats N/A, serve empty app-logs - #3639

Merged
0pcom merged 1 commit into
skycoin:developfrom
0pcom:fix/wasm-selfsummary-hoststats-applogs
Jul 30, 2026
Merged

fix(wasm): populate SelfSummary mirror fields, flag host-stats N/A, serve empty app-logs#3639
0pcom merged 1 commit into
skycoin:developfrom
0pcom:fix/wasm-selfsummary-hoststats-applogs

Conversation

@0pcom

@0pcom 0pcom commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Three surface-divergence leftovers (the recurring wasm mirror-struct gap) where a healthy browser visor rendered as misconfigured/broken on the shared HV UI:

  • SelfSummary filled only a subset of the fields the native builder does, so a long-running tab showed "0s uptime" and autoconnect off. Now stamps a bootTime → real Uptime; PublicAutoconnect=true (the edge runs the WS/WebRTC autoconnect loop); IsPublic=false stated explicitly. MinHops (0) and RewardAddress (none) are the edge's honest values.
  • host-stats reported 0% CPU / 0-byte RAM — indistinguishable from a real idle host. Adds "available": false so the resources page can show N/A instead of fake gauges (zeros kept for older UI).
  • apps/<app>/logs returned the generic subroute 404, which the Angular app-detail page turned into an error dialog. Now serves a valid empty LogsRes (200) so the logs panel renders "no logs" cleanly — same render-cleanly-don't-404 treatment routegroups/host-stats already get.

New pkg/wasmhv/self_test.go cases: dmsg/connect-all route, app-logs-not-404, host-stats-available-false. Wasm-only; blob re-embeds at release.

Part of the wasm-visor polish pass following the Tier A/B test harnesses (#3637, #3638).

…erve empty app-logs

Three surface-divergence leftovers where a healthy browser visor rendered as
misconfigured/broken on the shared HV UI (the recurring "wasm mirror gap"):

- SelfSummary populated only a subset of the fields the native builder fills,
  so a long-running tab showed "0s uptime" and autoconnect off. Now stamps a
  bootTime and reports real Uptime; PublicAutoconnect=true (the edge runs the
  WS/WebRTC autoconnect loop); IsPublic=false stated explicitly. MinHops (0)
  and RewardAddress (none) are the edge's honest values, left as-is.
- host-stats reported 0% CPU / 0-byte RAM, indistinguishable from a real
  idle-but-fine host. Adds "available": false so the resources page can show
  N/A for a serverless visor instead of fake gauges (zeros kept for old UI).
- apps/<app>/logs returned the generic subroute 404, which the Angular
  app-detail page turned into an error dialog. Now serves a valid empty
  LogsRes (200) so the logs panel renders "no logs" cleanly — the same
  render-cleanly-don't-404 treatment routegroups/host-stats already get.

Tests: connect-all route, app-logs-not-404, and host-stats-available-false
added to pkg/wasmhv/self_test.go. Wasm-only; blob re-embeds at release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XzckVqHX624RpdEWcvVosA
@0pcom
0pcom merged commit da750c9 into skycoin:develop Jul 30, 2026
12 checks passed
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.

1 participant