Skip to content

fix: stabilize cli config and gateway update flows#9327

Open
akillness wants to merge 1 commit into
NousResearch:mainfrom
akillness:fix/cli-config-gateway-stability
Open

fix: stabilize cli config and gateway update flows#9327
akillness wants to merge 1 commit into
NousResearch:mainfrom
akillness:fix/cli-config-gateway-stability

Conversation

@akillness

Copy link
Copy Markdown

Summary

  • preserve Discord/Telegram skill command mappings after 32-char clamp and add regression tests
  • make Hermes .env loading override stale shell env even when PYTHON_DOTENV_DISABLED=1
  • keep first-install tools flow CLI-only and fix gateway/systemd + provider-config regression coverage
  • add missing Hugging Face model metadata entry and harden related tests against ambient Copilot auth

Verification

  • source venv/bin/activate && python -m pytest tests/hermes_cli/ -q
  • source venv/bin/activate && python -m pytest tests/hermes_cli/test_commands.py tests/cli/test_cli_init.py tests/test_model_tools.py -q

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard comp/gateway Gateway runner, session dispatch, delivery labels Apr 27, 2026
jankadlecek added a commit to jankadlecek/hermes-agent that referenced this pull request May 24, 2026
OpenAI's "Enable device code authorization for Codex" toggle in ChatGPT
Settings is broken/missing for many account types since early 2026
(openai/codex NousResearch#9253, NousResearch#9282, NousResearch#9327, NousResearch#9418). Hermes dashboard's KEYS →
Codex LOGIN button uses device code internally, so it fails out of the
box. Local `codex login` uses PKCE with a localhost callback and is
unaffected, so let the operator do that login on their Mac and ship
the resulting tokens to the container via a base64 env var.

The bootstrap runs once when CODEX_AUTH_JSON_B64 is set AND the Hermes
auth store does not yet exist on the volume. It writes both the Codex
CLI shared file and the Hermes auth.json with active_provider set to
"openai-codex", so Hermes's auto-detect picks Codex without needing
any further dashboard interaction.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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 comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants