Files
hermes-agent/hermes_cli
Teknium a3ed4a1730 fix(update): skip the restore import check only for non-runtime files
The #130101 exemption skipped the post-restore import comparison whenever
the stash restored no .py file. A restored native extension (toolsets.so
shadowing toolsets.py), bytecode, a .pth or a data file read at import is
not .py, so such a restore was accepted, the stash dropped, and run_agent,
model_tools and toolsets were left failing to import.

Skip the comparison only when every path the stash restores (read from the
stash commit: worktree, index and untracked trees, renames split) has a
closed non-runtime suffix (docs, images), is not a symlink, and lives in a
directory HEAD already tracks. Anything else is compared as before. A
docs-only restore still succeeds.
2026-10-07 05:01:57 -07:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…