From 4b202d1267db5586864bcb54e8d0f7757b96494a Mon Sep 17 00:00:00 2001 From: nanw Date: Wed, 1 Jul 2026 13:00:15 +0800 Subject: [PATCH] fix(docker): exclude .playwright from rsync staging to avoid error 23 The agent source at /opt/hermes inside the container may contain a .playwright/ directory with browser dependency files that have restricted permissions. rsync fails with exit code 23 when attempting to read them, which kills the container build ("Failed to stage hermes-agent source"). - Add --exclude=.playwright to rsync in docker_init.bash - Add rm -rf .playwright to cp -a fallback path for symmetry - Update test_docker_init_excludes_egg_info_during_staging to assert both the rsync --exclude and a broad .playwright presence check - Add a brief note in AGENTS.md Contribution style about mirroring directory exclusions in both rsync and cp paths Fixes #5315 --- .codegraph/.gitignore | 5 - AGENTS.md | 261 +++++-------------------- docker_init.bash | 2 + tests/test_docker_docs_and_readonly.py | 10 + 4 files changed, 56 insertions(+), 222 deletions(-) delete mode 100644 .codegraph/.gitignore diff --git a/.codegraph/.gitignore b/.codegraph/.gitignore deleted file mode 100644 index d20c0fe4..00000000 --- a/.codegraph/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -# CodeGraph data files — local to each machine, not for committing. -# Ignore everything in .codegraph/ except this file itself, so transient -# files (the database, daemon.pid, sockets, logs) never show up in git. -* -!.gitignore diff --git a/AGENTS.md b/AGENTS.md index 48feee7f..8e1bbd6e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,118 +1,49 @@ # Agent instructions for Hermes WebUI -This file is the shared entry point for AI assistants working in this repository. -Keep it project-specific and safe to publish. Do not put personal machine setup, -private network details, credentials, tokens, or local-only workflow notes here. +This file is the shared entry point for AI assistants working in this +repository. Keep it project-specific and safe to publish. Do not put personal +machine setup, private network details, credentials, tokens, or local-only +workflow notes here. -## What this repo is +## Read first -Hermes WebUI is a browser frontend for [Hermes Agent](https://hermes-agent.nousresearch.com/). -It is deliberately a **Python + vanilla JavaScript** app with no build step, no -bundler, no frontend framework. The Python server lives in `server.py` + `api/` -and the frontend is plain `