Consolidate verified Athena runtime, maintenance records and specialist handoff
This commit is contained in:
1 parent
f63c5c936a
commit
6979480fd8
332 files changed
+71539
-5
No files matched your search
@@ -1,5 +1,10 @@
|
||||
# Official Hermes Agent Desktop container — 18 October 2026
|
||||
|
||||
26 October: [persistent XFCE default-browser correction](../../../docs/maintenance/hermes-screen-browser-2026-10-26.md)
|
||||
uses the existing Hermes dock policy for local profile Screens. No image or
|
||||
Mac-app patch and no service restart. Fresh profiles require reapplying the
|
||||
documented user-level browser selection.
|
||||
|
||||
User requested stopping the retained standalone `Hermes-Agent` and starting a
|
||||
separate official desktop-enabled instance for inspection. This is the Hermes
|
||||
backend with native Bot Screen, not another Electron app inside Docker and not
|
||||
@@ -92,6 +97,13 @@ not proof of a working Screen, browser, microphone or LLM session.
|
||||
|
||||
## Acceptance observations
|
||||
|
||||
Current update, 2026-10-26: the eight local profiles now have distinct default
|
||||
workspaces and browser paths, headed browser mode and on-demand Screen autostart.
|
||||
See [workspace cleanup and acceptance](../../../docs/maintenance/hermes-workspace-cleanup-2026-10-26/README.md)
|
||||
and [the persistent XFCE browser helper](../../../docs/maintenance/hermes-screen-browser-2026-10-26.md).
|
||||
The observations below describe the original 2026-10-18 trial; its autostart-off
|
||||
setting is historical.
|
||||
|
||||
[Sanitized machine-readable report](acceptance-2026-10-18.json).
|
||||
|
||||
The stock native CLI started a 1440×900 screen on DISPLAY `:20`. The browser
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
#!/opt/hermes/.venv/bin/python
|
||||
"""Persist only XFCE's WebBrowser selection for existing local Hermes profiles."""
|
||||
import configparser
|
||||
import json
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, "/opt/hermes")
|
||||
import hermes_yaml as yaml
|
||||
|
||||
BASE = Path("/opt/data")
|
||||
LAUNCHER = BASE / ".local/bin/hermes-screen-browser"
|
||||
HELPER = "hermes-screen-browser"
|
||||
SOURCE = Path(__file__).with_name("screen-browser.py")
|
||||
|
||||
|
||||
def main():
|
||||
LAUNCHER.parent.mkdir(parents=True, exist_ok=True)
|
||||
LAUNCHER.write_bytes(SOURCE.read_bytes())
|
||||
LAUNCHER.chmod(0o755)
|
||||
changed = []
|
||||
for home in [BASE, *sorted((BASE / "profiles").iterdir())]:
|
||||
cfg_file = home / "config.yaml"
|
||||
if not cfg_file.is_file() or home.is_symlink():
|
||||
continue
|
||||
cfg = yaml.safe_load(cfg_file.read_text()) or {}
|
||||
terminal = cfg.get("terminal", {}) or {}
|
||||
desktop = cfg.get("bot_desktop", {}) or {}
|
||||
if terminal.get("backend", "local") != "local":
|
||||
continue
|
||||
if desktop.get("placement", "gateway") not in (None, "gateway"):
|
||||
continue
|
||||
config = home / "bot-desktop/xdg"
|
||||
helper_dir = config / ".local-share/xfce4/helpers"
|
||||
helper_dir.mkdir(parents=True, exist_ok=True)
|
||||
(helper_dir / (HELPER + ".desktop")).write_text(
|
||||
"[Desktop Entry]\nVersion=1.0\nType=X-XFCE-Helper\n"
|
||||
"Name=Hermes Screen Browser\nIcon=internet-web-browser\n"
|
||||
"StartupNotify=false\nX-XFCE-Category=WebBrowser\n"
|
||||
f"X-XFCE-Binaries={LAUNCHER};\n"
|
||||
'X-XFCE-Commands=%B;\nX-XFCE-CommandsWithParameter=%B "%s";\n'
|
||||
)
|
||||
rc = config / "xfce4/helpers.rc"
|
||||
rc.parent.mkdir(parents=True, exist_ok=True)
|
||||
old = rc.read_text() if rc.exists() else ""
|
||||
if re.search(r"^WebBrowser=", old, re.M):
|
||||
new = re.sub(r"^WebBrowser=.*$", "WebBrowser=" + HELPER, old, flags=re.M)
|
||||
else:
|
||||
new = old.rstrip() + "\nWebBrowser=" + HELPER + "\n"
|
||||
rc.write_text(new.lstrip("\n"))
|
||||
mime = config / "mimeapps.list"
|
||||
ini = configparser.ConfigParser(interpolation=None)
|
||||
ini.optionxform = str
|
||||
if mime.exists():
|
||||
ini.read(mime)
|
||||
if not ini.has_section("Default Applications"):
|
||||
ini.add_section("Default Applications")
|
||||
for mime_type in ("x-scheme-handler/http", "x-scheme-handler/https", "text/html"):
|
||||
ini.set("Default Applications", mime_type, "xfce4-web-browser.desktop")
|
||||
with mime.open("w") as fh:
|
||||
ini.write(fh, space_around_delimiters=False)
|
||||
changed.append("default" if home == BASE else home.name)
|
||||
print(json.dumps({"configured_local_profiles": changed, "launcher": str(LAUNCHER)}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/opt/hermes/.venv/bin/python
|
||||
"""Open XFCE's preferred browser using Hermes' own per-Screen launch policy."""
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def launch_args():
|
||||
config = Path(os.environ.get("XDG_CONFIG_HOME", "")).resolve()
|
||||
base = Path("/opt/data").resolve()
|
||||
if config.name != "xdg" or config.parent.name != "bot-desktop":
|
||||
raise RuntimeError("Run this launcher from a Hermes Bot Screen.")
|
||||
home = config.parent.parent
|
||||
if home != base and (home.parent != base / "profiles" or not home.is_dir()):
|
||||
raise RuntimeError("Unexpected Hermes Screen profile directory.")
|
||||
os.environ["HERMES_HOME"] = str(home)
|
||||
sys.path.insert(0, "/opt/hermes")
|
||||
from tools.bot_desktop import browser
|
||||
|
||||
selected = browser.dock_launch()
|
||||
if selected is None:
|
||||
raise RuntimeError("Hermes has no headed browser available.")
|
||||
return browser.dock_argv(*selected)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
args = launch_args()
|
||||
if sys.argv[1:] == ["--check"]:
|
||||
print(json.dumps(args))
|
||||
else:
|
||||
os.execv(args[0], args + sys.argv[1:])
|
||||
@@ -89,3 +89,26 @@ or every MCP operation. Existing media acceptance remains a separate test.
|
||||
Existing media limitations in OWN-INSTANCE-MEDIA-MCP-2026-10-17.md remain: this
|
||||
change does not fix private-HTTP read-aloud validation, default MP3 vs WAV, or
|
||||
the unavailable Splicekit service.
|
||||
|
||||
## Debian Node prerequisite — 18 October 2026
|
||||
|
||||
On restart the existing container reported `libatomic.so.1` missing when Hermes
|
||||
verified its managed Node runtime. No web listener was reachable on 8787, including
|
||||
inside the container; health was unhealthy. This is a dependency failure, not
|
||||
proof of a reverse-proxy fault. The matching upstream report is
|
||||
https://github.com/nesquena/hermes-webui/issues/8036 and the Hermes installer also
|
||||
names Debian/Ubuntu package `libatomic1`:
|
||||
https://github.com/NousResearch/hermes-agent/issues/87460 .
|
||||
|
||||
The existing operator-maintained `start-with-gateway.sh` now checks the library
|
||||
with Python ctypes before calling the upstream initializer. If absent it installs
|
||||
only Debian `libatomic1` through apt and verifies loading it. This bootstrap step
|
||||
is our persistent packaging adjustment using the upstream-named package, not an
|
||||
upstream WebUI source fix. No extra image, container, credentials, profiles or
|
||||
workspace permissions are introduced. Future container recreation reruns the
|
||||
check; installed systems skip apt. A fresh native Debian installation likewise
|
||||
needs `apt-get install libatomic1` before installing Hermes-managed Node.
|
||||
The persistent deployment script belongs in the existing encrypted deployment
|
||||
backup/restore scope; Git stores the non-secret bootstrap recipe. No full native
|
||||
fresh-host restore has been performed. Startup still requires Debian package
|
||||
network access if the library is missing in a newly created container.
|
||||
@@ -52,6 +52,15 @@ stop_children() {
|
||||
trap 'stop_children; exit 0' TERM INT
|
||||
trap stop_children EXIT
|
||||
|
||||
# Hermes-managed Node requires this Debian runtime library. Minimal upstream
|
||||
# images may omit it (upstream WebUI #8036, Hermes Agent #87460).
|
||||
# Keep the prerequisite in persistent bootstrap so container recreation is safe.
|
||||
if ! /usr/local/bin/python3 -c 'import ctypes; ctypes.CDLL("libatomic.so.1")' 2>/dev/null; then
|
||||
apt-get update -qq
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libatomic1
|
||||
/usr/local/bin/python3 -c 'import ctypes; ctypes.CDLL("libatomic.so.1")'
|
||||
fi
|
||||
|
||||
# Operator-approved exception for this exact private TTS endpoint only.
|
||||
# Unknown upstream versions keep their original policy; never patch them blindly.
|
||||
export HERMES_WEBUI_TRUSTED_TTS_BASE_URL=http://192.168.1.212:8120/v1
|
||||
|
||||
Reference in new issue
Block a user