jupyterlab is installed into /opt/hermes/.venv, not system python3.
start_jupyter() was calling python3 -c "import jupyterlab" which fails
on system python → returned 1 → set -euo pipefail killed start.sh →
container crashed every boot → HF Space stuck in RUNNING_APP_STARTING.
Fixes:
- Use /opt/hermes/.venv/bin/python for the import check and launch
- Change failing return 1s in start_jupyter to return 0 (non-fatal)
- Restore HEALTHCHECK with 60s start-period (was accidentally removed)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: terminal on by default, uses GATEWAY_TOKEN, add dashboard button
- DEV_MODE defaults to true — no extra secret needed
- JUPYTER_TOKEN falls back to GATEWAY_TOKEN (single password)
- Add "Open Terminal →" button beside "Open Hermes Agent →" on dashboard
- Update README to reflect new defaults
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: add JupyterLab terminal at /terminal/ (DEV_MODE=true)
Install JupyterLab in the venv. When DEV_MODE=true and JUPYTER_TOKEN
is set (strong token required — full shell access), start JupyterLab
on port 8888 with /terminal/ base URL. health-server proxies HTTP
and WebSocket (required for kernels/terminals) to JupyterLab.
Usage: set DEV_MODE=true and JUPYTER_TOKEN=<openssl rand -hex 32>
in HF Space secrets, then visit /terminal/.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chore: replace emoji with 🪽 (Hermes winged sandals)
When user restarts the gateway from Hermes dashboard, the gateway
process exits naturally. wait() returns but SIGTERM trap never fires,
so no sync runs before the container shuts down. Keys set via the UI
are lost because the next restore pulls a stale backup.
Add an explicit sync-once after wait() to cover the natural-exit path.
SIGTERM path already handled by graceful_shutdown trap.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix: restore correct gemini provider model name format
Hermes gemini provider requires bare model name (e.g. gemini-2.5-flash)
not the prefixed form (google/gemini-2.5-flash). Reverts the incorrect
google/ prefix preservation from the previous commit and reunifies
google|gemini case with correct prefix stripping.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
refactor: decouple model provider configuration from model names to enable automatic provider inference by Hermes