The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(update): pass-1 clears its stamp before npm ci too; reuse the module's suppress import
kshitijk4poore760236edc9e
diff --git a/hermes_cli/update_cmd_deps.py b/hermes_cli/update_cmd_deps.pyindex 10d12229e69..6b024b47d9e 100644--- a/hermes_cli/update_cmd_deps.py+++ b/hermes_cli/update_cmd_deps.py@@ -6,7 +6,6 @@ import loggingfrom contextlib import suppressimport hashlibimport json-import contextlibimport osimport shutilimport subprocess@@ -551,7 +550,7 @@ def _npm_stamp_matches(hermes_root: Path, current: str, scope: str = "") -> booldef _clear_npm_lockfile_hash(hermes_root: Path, scope: str = "") -> None:"""Drop the stamp before an install attempt: it is written on success only, so a stale one must notoutlive a failed reinstall (or the next update would skip the repair)."""- with contextlib.suppress(OSError):+ with suppress(OSError):_npm_lock_cache_file(hermes_root, scope).unlink()@@ -685,6 +684,7 @@ def _update_node_dependencies() -> list[str]:# capturing makes a long download look hung.# The chatty npm-deprecation noise during `hermes update` comes from the *desktop* build, not this step;# that one is captured to update.log. See #18840.+ _clear_npm_lockfile_hash(shared_hermes_root)result = _m()._run_npm_install_deterministic(npm, _m().PROJECT_ROOT, extra_args=tuple(install_args), capture_output=False, env=nixos_env)if result.returncode == 0: