HERMES-GIELIE/api
Hinotobi 88dc8bbe26
fix: isolate profile .env secrets on switch (#351)
* fix: isolate profile .env secrets on switch

* fix: move direct os.environ set after _reload_dotenv to survive profile isolation

The profile env isolation in _reload_dotenv now clears previously tracked
env keys before re-reading .env. When apply_onboarding_setup set
os.environ BEFORE _reload_dotenv, the key was immediately cleared.
Move the belt-and-braces os.environ set to AFTER _reload_dotenv so
the API key survives regardless of profile tracking state.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Nathan Esquenazi <nesquena@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 00:51:55 -07:00
..
__init__.py Hermes Web UI — Sprints 11-14: multi-provider models, settings, session QoL, alerts, polish 2026-03-31 07:02:47 +00:00
auth.py fix(auth): prune expired sessions on every verify to prevent memory leak (#196) 2026-04-09 18:05:23 -07:00
config.py fix: deduplicate model dropdown (hyphen vs dot) + README accuracy (#332) 2026-04-12 14:45:39 -07:00
gateway_watcher.py feat: real-time gateway session sync (Phase 1) (#274) 2026-04-11 20:53:12 -07:00
helpers.py v0.46.0: security, Docker UID/GID, model discovery, i18n, cancel fix 2026-04-11 10:17:52 -07:00
models.py feat: real-time gateway session sync (Phase 1) (#274) 2026-04-11 20:53:12 -07:00
onboarding.py fix: isolate profile .env secrets on switch (#351) 2026-04-13 00:51:55 -07:00
profiles.py fix: isolate profile .env secrets on switch (#351) 2026-04-13 00:51:55 -07:00
routes.py fix: allow onboarding from Docker bridge networks (closes #334) (#335) 2026-04-12 16:35:47 -07:00
startup.py v0.46.0: security, Docker UID/GID, model discovery, i18n, cancel fix 2026-04-11 10:17:52 -07:00
state_sync.py fix: sync message_count to state.db for /insights (#163) (#164) 2026-04-06 22:56:27 -07:00
streaming.py fix: title auto-generation + mobile close button (PR #333) + v0.50.10 2026-04-12 21:45:25 -07:00
updates.py fix: improve self-update git pull diagnostics (#287) 2026-04-12 00:19:33 -07:00
upload.py chore: add missing type hints across 10 files 2026-04-05 13:30:20 +07:00
workspace.py chore: add missing type hints across 10 files 2026-04-05 13:30:20 +07:00