Skip to content

fix: guard dashboard update in Docker#34831

Closed
donovan-yohan wants to merge 2 commits into
NousResearch:mainfrom
donovan-yohan:fix/issue-34347-docker-update-webui
Closed

fix: guard dashboard update in Docker#34831
donovan-yohan wants to merge 2 commits into
NousResearch:mainfrom
donovan-yohan:fix/issue-34347-docker-update-webui

Conversation

@donovan-yohan

Copy link
Copy Markdown
Contributor

Summary

  • Add a dashboard-side Docker install guard for POST /api/hermes/update before spawning hermes update.
  • Return a structured non-500 response with Docker update guidance and record the guidance in the existing action log/status path.
  • Preserve the normal non-Docker update spawn path.

Closes #34347

Validation

  • scripts/run_tests.sh tests/hermes_cli/test_cmd_update_docker.py tests/hermes_cli/test_web_server.py -- -q -k 'update_hermes or docker' — 9 passed
  • .venv/bin/python -m compileall -q hermes_cli/web_server.py tests/hermes_cli/test_web_server.py — passed
  • scripts/run_tests.sh tests/hermes_cli/test_web_server.py -- -q — 149 passed, 3 failed in existing TestPtyWebSocket websocket/PTY tests under this local ad-hoc venv (test_streams_child_stdout_to_client, test_client_input_reaches_child_stdin, test_resize_escape_is_forwarded); failures are outside the dashboard update endpoint path.

@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 area/docker Docker image, Compose, packaging labels May 29, 2026
benbarclay added a commit that referenced this pull request Jun 1, 2026
…nce (salvage #34831) (#36263)

* fix: guard dashboard update in Docker

* fix(dashboard): align action response type

---------

Co-authored-by: Donovan Yohan <donovan-yohan@users.noreply.github.com>
Co-authored-by: Donovan Yohan <34756395+donovan-yohan@users.noreply.github.com>
@benbarclay

Copy link
Copy Markdown
Collaborator

Landed via #36263 (merged in c1a531d) — a rebase of your fix onto current main, resolving the trivial test_web_server.py conflict (your new tests had landed next to other test additions; kept both). You're credited via Co-authored-by. Thanks @donovan-yohan — this fixes #34347 and #35835.

JoeKowal pushed a commit to JoeKowal/hermes-agent that referenced this pull request Jun 4, 2026
…nce (salvage NousResearch#34831) (NousResearch#36263)

* fix: guard dashboard update in Docker

* fix(dashboard): align action response type

---------

Co-authored-by: Donovan Yohan <donovan-yohan@users.noreply.github.com>
Co-authored-by: Donovan Yohan <34756395+donovan-yohan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docker Docker image, Compose, packaging comp/cli CLI entry point, hermes_cli/, setup wizard 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.

WebUI "Update" button surfaces raw SystemExit when run in Docker context

3 participants