Add Windows WSL WebUI autostart helpers#1665
Closed
Michaelyklam wants to merge 1 commit intonesquena:masterfrom
Closed
Add Windows WSL WebUI autostart helpers#1665Michaelyklam wants to merge 1 commit intonesquena:masterfrom
Michaelyklam wants to merge 1 commit intonesquena:masterfrom
Conversation
2f810c7 to
71dd385
Compare
Collaborator
|
Closed by the v0.51.1 release in PR #1681 (merged at e23ba59). Massive thanks @Michaelyklam — this is now 19 merged PRs across the v0.50.292–v0.51.1 release window, an extraordinary contribution rate. Each PR was per-claim-vs-diff verified against your description and every security-relevant code path checked under independent review (Opus advisor, 6/6 questions clean). Your Live on production: https://github.com/nesquena/hermes-webui/releases/tag/v0.51.1 🚀 |
nesquena-hermes
pushed a commit
to Michaelyklam/hermes-webui
that referenced
this pull request
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thinking Path
What Changed
docs/wsl-autostart.mdcovering two supported paths:~/.profileor~/.bashrcwsl.exescripts/wsl/hermes_webui_autostart.sh, a WSL-safe launcher that:HERMES_WEBUI_REPOis setstart.sh --foregroundwith persistent logsHERMES_WEBUI_HOST/HERMES_WEBUI_PORTto the child processHERMES_WEBUI_REQUIRE_AGENT_PROCESS=1scripts/windows/setup_webui_autostart.ps1, an idempotent Task Scheduler helper that:-Forceinstead of creating duplicatesShouldProcess/-WhatIf, least privilege, andMultipleInstances IgnoreNewbash -lcshell quoting by passing the WSL script path as an argv itemtests/test_issue513_wsl_autostart.pyfor docs coverage, bash syntax, and PowerShell safety/idempotency invariants.Closes #513
Why It Matters
/rootpaths, duplicate processes, and unbounded scheduled-task creation.start.sh --foregroundprocess-supervisor guidance without introducing a new service manager dependency.Verification
env -u HERMES_CONFIG_PATH /home/michael/.hermes/hermes-agent/venv/bin/python -m pytest tests/test_issue513_wsl_autostart.py -q— 5 passeduv run --python /usr/bin/python3.12 --with pytest --with pytest-timeout python -m pytest tests/test_issue513_wsl_autostart.py -q --timeout=60— 5 passedbash -n scripts/wsl/hermes_webui_autostart.sh— passedgit diff --check— passedenv -u HERMES_CONFIG_PATH /home/michael/.hermes/hermes-agent/venv/bin/python -m pytest tests/ -q— 4289 passed, 4 skipped, 3 xpassed, 1 warning, 8 subtests passed; 2 unrelatedtests/test_sprint3.pyskills-list tests failed during the full-suite run due to transient empty skills state. Rerunning the two failed tests directly passed:2 passed in 1.65s.No browser media included because this is docs/scripts-only and does not change the WebUI interface.
Risks / Follow-ups
pwshis not always installed; source-string tests still pin the important Scheduled Task invariants.ctl.shor service installer can wrap these scripts if the project standardizes a broader service-management interface.HERMES_WEBUI_PORT/HERMES_WEBUI_HEALTH_URLin their startup hook.Model Used
gpt-5.5