From eae4d77856bf4fcec310bf3d114fa4139bccfe8d Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Fri, 16 Oct 2026 22:03:57 +0200 Subject: [PATCH] fix: supply Hermes dependencies and read-only skills to WebUI --- integrations/hermes-unraid/webui/README.md | 37 +++++++++++++++---- .../hermes-unraid/webui/my-Hermes-WebUI.xml | 4 ++ 2 files changed, 34 insertions(+), 7 deletions(-) diff --git a/integrations/hermes-unraid/webui/README.md b/integrations/hermes-unraid/webui/README.md index fdebd87..4e5b1f6 100644 --- a/integrations/hermes-unraid/webui/README.md +++ b/integrations/hermes-unraid/webui/README.md @@ -28,11 +28,28 @@ Athena provider/model catalog. Its browser model list shows the 12 Athena model IDs. Existing Hermes-Agent config, skills, memory, sessions, services and OpenWebUI were not modified or restarted. Gateway execution uses the existing agent. -The WebUI runtime deliberately has no Hermes agent source mount; the image's -upstream entrypoint supports reduced-functionality startup in that case. Local -agent import, CLI history import and local management panels are not verified -and must not be described as a complete mirror of the running Hermes. Gateway -chat was tested independently of those local management features. +The initial reduced-functionality deployment omitted local Hermes source. This +was insufficient: the Skills page raised `ModuleNotFoundError: No module named +'agent'` from `_skills_list_from_dir`. The gateway-only chat test did not cover +the management panels. Do not repeat that configuration. + +Correction: downloaded the exact public Hermes source revision +`d923a5eb487a17c0a68801bba9ef0f56c81040a8` and installed its official `[all]` +dependencies plus WebUI requirements in a persistent Python 3.14.8 environment. +`app/python-runtime` holds managed Python, `app/runtime-venv` the venv, and +`app/venv` points to it. `UV_PYTHON=3.14` and +`UV_PYTHON_INSTALL_DIR=/app/python-runtime` make clean entrypoint rebuilds use a +compatible persistent interpreter. Public source is mounted read-only from +`agent-source` to `/home/hermeswebui/.hermes/hermes-agent`; editable package +installation uses the entrypoint-compatible writable `/app/hermes-agent-src`. + +Existing production skills are mounted **read-only** at `/opt/athena-skills`. +The isolated WebUI `home/skills` symlink points there. Placing the mount outside +the home traversal avoids the entrypoint recursively chowning production skill +files. This enables display, not creating/editing/deleting production skills. +It does not make all management panels mirrors of the production Hermes home. +Only the new WebUI container was recreated to activate these mounts. The running +Hermes-Agent and its gateway were not restarted or reconfigured. ## Persistence and credentials @@ -46,6 +63,9 @@ Root: `/mnt/nvme-storage/appdata/Hermes-WebUI`: Docker `--env-file`. Holds the existing Hermes API key, existing Athena provider key and the existing Hermes dashboard password (copied internally, never printed). No credential values in this repository or template. +- `agent-source`: public source dependency, reproducible from the exact revision + above. Existing `/mnt/nvme-storage/appdata/Hermes-Agent/skills` remains owned + and backed up by the production agent; the WebUI mounts it read-only. Login uses the existing Hermes dashboard password; no username is requested by this application's login form. Root entrypoint aligns UID/GID to 99:100 and drops @@ -62,6 +82,9 @@ image delivery works before a real test. No share mounts were added. ## Verified - HTTP `/health` returned 200. +- After the Skills correction, browser reload and Skills navigation succeeded; + existing production skill metadata (including GigaBlue/Home Assistant) appeared + instead of Internal Server Error. Skills are read-only in this UI. - Authenticated browser login worked. - Graphical chat and Athena model menu rendered. - Synthetic browser session `96cffa8464d7`: instructed one terminal `printf` @@ -73,8 +96,8 @@ image delivery works before a real test. No share mounts were added. `HERMES_WEBUI_GATEWAY_USE_RUNS_API=true`. Not verified: generated image from Athena, image attachments/vision, approvals, -clarifications, model-switch inference for every profile, memory/skills management -panels or workspace equivalence. Installing/running is not an end-to-end proof of +clarifications, model-switch inference for every profile, memory management, +skill editing or workspace equivalence. Installing/running is not an end-to-end proof of all advertised upstream features. ## Backup, restore, update, removal diff --git a/integrations/hermes-unraid/webui/my-Hermes-WebUI.xml b/integrations/hermes-unraid/webui/my-Hermes-WebUI.xml index 633c108..8041d22 100644 --- a/integrations/hermes-unraid/webui/my-Hermes-WebUI.xml +++ b/integrations/hermes-unraid/webui/my-Hermes-WebUI.xml @@ -41,4 +41,8 @@ true 1 Europe/Berlin + /mnt/nvme-storage/appdata/Hermes-WebUI/agent-source + /mnt/nvme-storage/appdata/Hermes-Agent/skills + 3.14 + /app/python-runtime \ No newline at end of file