[nu-demo] service_agent.nu is missing — hero_agent not installable via service_install_all #135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
Fresh install has no AI chat backend. The AI Assistant island shows:
because hero_agent is never installed or started.
Root cause
hero_agent has an
--start/--stopCLI that self-registers with hero_proc, but hero_skills has noservice_agent.numodule. It is therefore not included inpackages.nu::service_install_all, and there is no standard way to bring it up via the nu orchestrator.Demo workaround (applied 2026-04-23)
Proper fix
Add
service_agent.nutohero_skills/tools/modules/services/, matching the pattern ofservice_aibroker.nu. Include it inpackages.nu::service_install_all.IMPORTANT: the action env must include BOTH
OPENROUTER_API_KEYANDOPENROUTER_API_KEYS(plural is what hero_agent'sconfig.rsreads — see companion issue). Without that, chat fails with 401.Filed 2026-04-23 nu-shell demo bring-up. Signed-off-by: mik-tf
make demotarget — provision + install + seed + verify a fresh Hero OS demo VM in one command #163hero_proc service startreturns 'service not found' #167Fixed in hero_skills commit 60375f4 (
feat(skills): wire action env vars + new service_agent module).Verification:
hero_skills/tools/modules/services/service_agent.nuexists (full install/start/stop lifecycle).packages.nu:use service_agent.nu(line 32)OPENROUTER_API_KEY→ pluralOPENROUTER_API_KEYSfor hero_agent (service_agent.nu:59,76), and also forwardsGROQ_API_KEY.AIBROKER_API_ENDPOINTroutes throughHERO_ROUTER_ADDRESS:HERO_ROUTER_UI_PORT(TCP HTTP — reqwest cannot speak Unix sockets).Note: the issue body called for forwarding both
OPENROUTER_API_KEYandOPENROUTER_API_KEYS. The current implementation reads the canonical singular env var and forwards under the plural name hero_agent expects. Proper singular fallback inside hero_agent itself remains tracked separately under home#136.Signed-off-by: mik-tf
make demotarget — provision + install + seed + verify a fresh Hero OS demo VM in one command #31