From 67034d38af38460f826f3ddb6f40e3b61a0a1369 Mon Sep 17 00:00:00 2001 From: GkreLee Date: Thu, 10 Sep 2026 22:00:27 +0800 Subject: [PATCH] fix: correct symlink path for hermes-agent plugin discovery The install script creates the symlink at $HOME/.hermes/plugins/memory/memtensor/, but hermes-agent's plugin discovery scans $HOME/.hermes/plugins/ for direct children. The extra memory/ subdirectory causes the plugin to be invisible to the host. Fix: change USER_TARGET to $HOME/.hermes/plugins/memtensor (without the memory/ prefix), matching hermes-agent's expected plugin layout. --- apps/memos-local-plugin/adapters/hermes/install.hermes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/memos-local-plugin/adapters/hermes/install.hermes.sh b/apps/memos-local-plugin/adapters/hermes/install.hermes.sh index a010c68d0..ee5a3226d 100755 --- a/apps/memos-local-plugin/adapters/hermes/install.hermes.sh +++ b/apps/memos-local-plugin/adapters/hermes/install.hermes.sh @@ -65,7 +65,7 @@ fi : "${HOME:?HOME must be set for user-level plugin directory creation}" USER_HERMES_PLUGINS_DIR="${HOME}/.hermes/plugins/memory" mkdir -p "$USER_HERMES_PLUGINS_DIR" -USER_TARGET="$USER_HERMES_PLUGINS_DIR/memtensor" +USER_TARGET="${HOME}/.hermes/plugins/memtensor" # Clean up a pre-existing non-symlink entry (file or dir) left over from # a previous manual install so `ln -sfn` doesn't refuse or misbehave. if [[ -L "$USER_TARGET" ]]; then rm "$USER_TARGET"