Skip to content

The agent that grows with you

fix(left-core): read kept migration notices BOM-tolerant (utf-8-sig)

Teknium8dddcc0101bb
diff --git a/hermes_cli/left_core_migration.py b/hermes_cli/left_core_migration.py
index fd2cc4009f3..996d97b836d 100644
--- a/hermes_cli/left_core_migration.py
+++ b/hermes_cli/left_core_migration.py
@@ -738,7 +738,7 @@ def _claim_notices(home: Path) -> list[str]:
except OSError: # nothing kept, or another process claimed it first
return []
try:
- lines = claimed.read_text(encoding="utf-8").splitlines()
+ lines = claimed.read_text(encoding="utf-8-sig").splitlines()
except OSError:
lines = []
finally: