Skip to content

refactor(env): use shared Hermes dotenv loader (salvage #13660)#20281

Merged
teknium1 merged 2 commits into
mainfrom
salvage/pr-13660
May 5, 2026
Merged

refactor(env): use shared Hermes dotenv loader (salvage #13660)#20281
teknium1 merged 2 commits into
mainfrom
salvage/pr-13660

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

@teknium1 teknium1 commented May 5, 2026

Salvages @Bongulielmi's PR #13660 onto current main.

What it does

Three call sites each hand-rolled the "load ~/.hermes/.env with utf-8/latin-1 fallback, then project .env" sequence. Replace with the existing hermes_cli.env_loader.load_hermes_dotenv() helper so encoding-fallback logic stays in one place.

Changes

  • hermes_cli/doctor.py, hermes_cli/dump.py, scripts/discord-voice-doctor.py — use load_hermes_dotenv instead of open-coded load_dotenv calls.
  • scripts/release.py — AUTHOR_MAP entry for Bongulielmi.

Validation

tests/hermes_cli/ -k 'doctor or dump or env_loader' — 62 passed locally.

Closes #13660 via salvage.

@alt-glitch alt-glitch added type/refactor Code restructuring, no behavior change P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard labels May 5, 2026
@teknium1 teknium1 force-pushed the salvage/pr-13660 branch from e55368e to 141dc73 Compare May 5, 2026 17:13
@teknium1 teknium1 merged commit 269be4e into main May 5, 2026
9 of 10 checks passed
@teknium1 teknium1 deleted the salvage/pr-13660 branch May 5, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants