From fb961f6132edc752dab828f26cd28162b7ab5463 Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Fri, 16 Oct 2026 14:41:30 +0200 Subject: [PATCH] Use Webtop home directly as Hermes workspace --- .../hermes-unraid/webtop-workspace/AGENTS.md | 4 ++-- .../hermes-unraid/webtop-workspace/README.md | 12 ++++++++++-- .../webtop-workspace/configure-session.sh | 4 ++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/integrations/hermes-unraid/webtop-workspace/AGENTS.md b/integrations/hermes-unraid/webtop-workspace/AGENTS.md index 7a33ae4..b817f20 100644 --- a/integrations/hermes-unraid/webtop-workspace/AGENTS.md +++ b/integrations/hermes-unraid/webtop-workspace/AGENTS.md @@ -1,10 +1,10 @@ # Hermes Workspace (Webtop) Your terminal backend is SSH into the persistent Hermes-Workspace container, user abc. -Work in /config/workspace. /config is the persistent home. You have no host Docker socket. +Work in /config. /config is the persistent home. You have no host Docker socket. Browser automation: use /opt/hermes-workspace/bin/webtop-browser (agent-browser CLI). -Examples: webtop-browser open URL; webtop-browser snapshot -i; webtop-browser screenshot /config/workspace/page.png. +Examples: webtop-browser open URL; webtop-browser snapshot -i; webtop-browser screenshot /config/page.png. It uses the visible Webtop Chromium and a persistent browser profile. For the existing visible Webtop desktop, discover tools from MCP server webtop-desktop. diff --git a/integrations/hermes-unraid/webtop-workspace/README.md b/integrations/hermes-unraid/webtop-workspace/README.md index f42b50c..1b7d29c 100644 --- a/integrations/hermes-unraid/webtop-workspace/README.md +++ b/integrations/hermes-unraid/webtop-workspace/README.md @@ -55,8 +55,8 @@ integrations and remain necessary for the existing SSH/desktop connection. Existing Cua and agent-browser files remain in the persistent tools mount; `webtop-session` and `webtop-browser` live in tools/bin. A fresh restore requires this tools directory as well as the home, init and services directories. -Browser profile is `/config/.hermes-workspace/browser-profile`; work remains -`/config/workspace`. No user data or keys were removed by the migration. +Browser profile is `/config/.hermes-workspace/browser-profile`; the configured working directory is now +`/config` (home itself). No user data or keys were removed by the migration. ## Hermes integration @@ -184,3 +184,11 @@ and a real WSS upgrade through published HTTPS port 3021 at /api/websockets. Thr actual server messages were received. Direct browser video-frame rendering is not claimed from this protocol test. Use HTTPS https://192.168.1.2:3021 and reload the viewer after the repair. No host, Hermes, Athena or OpenCode restart for this fix. + +## Home as workspace (2026-10-16) + +Hermes terminal.cwd is `/config`. Workspace instructions were moved to +`/config/AGENTS.md`; the Hermes routing section uses the same home path. +Existing files under `/config/workspace` remain untouched. No service was +restarted; already running sessions may retain their previous working directory. +SSH access and readability of the home instructions were verified as Hermes UID 99. diff --git a/integrations/hermes-unraid/webtop-workspace/configure-session.sh b/integrations/hermes-unraid/webtop-workspace/configure-session.sh index 69e89da..6a4815a 100755 --- a/integrations/hermes-unraid/webtop-workspace/configure-session.sh +++ b/integrations/hermes-unraid/webtop-workspace/configure-session.sh @@ -1,7 +1,7 @@ #!/bin/bash set -euo pipefail # Configuration only. Native packages are managed by the official LinuxServer mod. -mkdir -p /run/sshd /config/.hermes-workspace/hostkeys /config/workspace /opt/hermes-workspace/bin +mkdir -p /run/sshd /config/.hermes-workspace/hostkeys /opt/hermes-workspace/bin chown root:root /config/.hermes-workspace/hostkeys chmod 700 /config/.hermes-workspace/hostkeys for kind in ed25519 rsa; do @@ -38,7 +38,7 @@ ln -sf /opt/hermes-workspace/cua/cua-driver /usr/local/bin/cua-driver # Old Webtop homes can retain the former PUID; retain content and correct ownership. if test -d /config/.config/pulse; then chown -R abc:abc /config/.config/pulse; fi chown abc:abc /config/.hermes-workspace -chown -R abc:abc /config/workspace /opt/hermes-workspace/node +chown -R abc:abc /opt/hermes-workspace/node if test -f /config/.hermes-workspace/authorized_keys; then chown abc:abc /config/.hermes-workspace/authorized_keys chmod 600 /config/.hermes-workspace/authorized_keys