Compute island: connect to TFGrid node #33

Closed
opened 2026-03-18 05:30:35 +00:00 by mik-tf · 2 comments
Owner

Problem

The Compute island (hero_compute_ui) loads correctly inside Hero OS with full Bootstrap styling, but shows "Disconnected" and "No node registered".

Context

  • hero_compute_ui is served as an ExternalServiceIframe at /hero_compute_ui/
  • The UI is fully styled (Bootstrap + icons via CDN)
  • The backend (hero_compute_server) needs TFGrid credentials or node registration to connect

Next Steps

  • Determine what credentials/config hero_compute_server needs
  • Add TFGrid secret/mnemonic to the container env
  • Register a node via the "Register Node" button or seed data
  • Session 12 work on issue #23
  • Branch: development_mik_6_1
## Problem The Compute island (hero_compute_ui) loads correctly inside Hero OS with full Bootstrap styling, but shows "Disconnected" and "No node registered". ## Context - hero_compute_ui is served as an ExternalServiceIframe at `/hero_compute_ui/` - The UI is fully styled (Bootstrap + icons via CDN) - The backend (`hero_compute_server`) needs TFGrid credentials or node registration to connect ## Next Steps - Determine what credentials/config hero_compute_server needs - Add TFGrid secret/mnemonic to the container env - Register a node via the "Register Node" button or seed data ## Related - Session 12 work on issue #23 - Branch: `development_mik_6_1`
Author
Owner

Assessment

Backend: fully working

  • Node registration works (ComputeService.node_register → detects 31GB RAM, 915GB disk, 7 slices)
  • VM CRUD works (deploy, start, stop, list)
  • Channel/message pipeline works
  • RPC over Unix socket healthy

Blockers found:

1. serve bug in TOML (same as inspector #100)
hero_compute.toml has exec = "hero_compute_server serve" — clap has no serve subcommand. Fix: remove serve from both server and UI exec lines. Already fixed locally in hero_services.

2. Not in user profile
hero_compute is not in any active profile. Only hero_compute_manager is in admin.toml. Fix: added to user.toml locally.

3. hero_compute_ui: absolute URL paths break behind proxy
All 28 CSS/JS/link references use absolute paths (/css/bootstrap.min.css) instead of proxy-compatible relative paths. Behind hero_proxy at /hero_compute_ui/, CSS/JS returns 404. This is the same issue other UIs solved with the base_path + BASE_PATH JS pattern.

Fix requires:

  • Add base_path to Askama template context
  • Replace 28 absolute URL references with {{ base_path }} prefixed relative paths
  • Add JS BASE_PATH detection script in <head>

This is a hero_compute repo change — needs a PR.

4. TFGrid credentials
Env vars TF_VAR_mnemonic and TFGRID_MNEMONIC_DEVNET exist in env.sh but are not passed to Docker container. Fix: add to docker run command.

Summary

hero_services fixes (TOML + profile) are ready. The hero_compute_ui proxy-compatible URL fix needs a PR to the hero_compute repo.

Signed-off-by: mik-tf

## Assessment ### Backend: fully working - Node registration works (`ComputeService.node_register` → detects 31GB RAM, 915GB disk, 7 slices) - VM CRUD works (deploy, start, stop, list) - Channel/message pipeline works - RPC over Unix socket healthy ### Blockers found: **1. `serve` bug in TOML (same as inspector #100)** `hero_compute.toml` has `exec = "hero_compute_server serve"` — clap has no `serve` subcommand. Fix: remove `serve` from both server and UI exec lines. Already fixed locally in hero_services. **2. Not in user profile** hero_compute is not in any active profile. Only hero_compute_manager is in admin.toml. Fix: added to user.toml locally. **3. hero_compute_ui: absolute URL paths break behind proxy** All 28 CSS/JS/link references use absolute paths (`/css/bootstrap.min.css`) instead of proxy-compatible relative paths. Behind hero_proxy at `/hero_compute_ui/`, CSS/JS returns 404. This is the same issue other UIs solved with the `base_path` + `BASE_PATH` JS pattern. Fix requires: - Add `base_path` to Askama template context - Replace 28 absolute URL references with `{{ base_path }}` prefixed relative paths - Add JS `BASE_PATH` detection script in `<head>` This is a hero_compute repo change — needs a PR. **4. TFGrid credentials** Env vars `TF_VAR_mnemonic` and `TFGRID_MNEMONIC_DEVNET` exist in env.sh but are not passed to Docker container. Fix: add to docker run command. ### Summary hero_services fixes (TOML + profile) are ready. The hero_compute_ui proxy-compatible URL fix needs a PR to the hero_compute repo. Signed-off-by: mik-tf
Author
Owner

Status: Pending PR Review

hero_services changes pushed (TOML fix + user profile). Backend fully functional.

UI proxy-compatible URL fix submitted as PR: lhumina_code/hero_compute#47

Blocked on PR merge + verification that CSS/JS/RPC load correctly behind hero_proxy.

Signed-off-by: mik-tf

## Status: Pending PR Review hero_services changes pushed (TOML fix + user profile). Backend fully functional. UI proxy-compatible URL fix submitted as PR: https://forge.ourworld.tf/lhumina_code/hero_compute/pulls/47 Blocked on PR merge + verification that CSS/JS/RPC load correctly behind hero_proxy. Signed-off-by: mik-tf
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/home#33
No description provided.