The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(update): run hermes update from the install root + unbreak fresh repro
Brooklyn Nicholsonf121cd8a065f
diff --git a/scripts/desktop-update/posix.sh b/scripts/desktop-update/posix.shindex a611626438c..c2e21693853 100755--- a/scripts/desktop-update/posix.sh+++ b/scripts/desktop-update/posix.sh@@ -314,6 +314,11 @@ fiHERMES_BIN="$INSTALL_ROOT/venv/bin/hermes"[ -x "$HERMES_BIN" ] || { FINAL_CODE=3 FINAL_MSG="Update aborted: $HERMES_BIN is missing. The install needs repair (run the Hermes installer or hermes doctor)."; log "$FINAL_MSG"; exit 3; }+# Run FROM the install root: `hermes update` resolves the tree it mutates+# from the working directory, and we inherit the Desktop's cwd (which can be+# an unrelated repo — updating THAT instead of the install is the failure+# the sandbox repro caught). The in-app path always passed cwd:updateRoot.+cd "$INSTALL_ROOT"export PYTHONUNBUFFERED=1log "running: hermes update --yes --gateway --branch $BRANCH"OUT="$("$HERMES_BIN" update --yes --gateway --branch "$BRANCH" 2>&1)"; CODE=$?diff --git a/scripts/desktop-update/repro.sh b/scripts/desktop-update/repro.shindex 1560d98191a..114888f1353 100755--- a/scripts/desktop-update/repro.sh+++ b/scripts/desktop-update/repro.sh@@ -46,8 +46,10 @@ ensure_sandbox_install() {mkdir -p "$SANDBOX"# The literal user path: install.sh against a clone of THIS checkout, so# the repro reproduces what you're about to ship, not origin/main.+ # </dev/null = non-TTY stdin, which install.sh treats as non-interactive+ # (it has no --no-interactive flag); --skip-setup skips the config wizard.git clone --quiet "$REPO_ROOT" "$SANDBOX_ROOT"- HERMES_HOME="$SANDBOX" bash "$SANDBOX_ROOT/scripts/install.sh" --no-interactive+ HERMES_HOME="$SANDBOX" bash "$SANDBOX_ROOT/scripts/install.sh" --skip-setup --hermes-home "$SANDBOX" < /dev/null}case "$MODE" in