[codex] Flag stale Windows gateway task definitions - #55711
Conversation
teknium1
left a comment
There was a problem hiding this comment.
Thanks for adding a targeted diagnostic for persisted Windows task drift. The current status path only reports registration and runtime fields (hermes_cli/gateway_windows.py:1426), while the current task generator requires the launcher and reliability settings this PR audits (hermes_cli/gateway_windows.py:602-626).
Problems
- The new warnings tell users to run
hermes gateway install --force(hermes_cli/gateway_windows.py:1317,1326,1331), but current Windowsinstall()explicitly saysforceis only API parity and every install reconciles the task (hermes_cli/gateway_windows.py:1031). The extra flag is unnecessary.
Suggested changes
- Use
hermes gateway installin each warning and assert that remediation text in the warning tests.
Automated hermes-sweeper review.
| root = ET.fromstring(xml_text.lstrip("\ufeff")) | ||
| except ET.ParseError: | ||
| return [ | ||
| "Scheduled Task definition could not be parsed; run " |
There was a problem hiding this comment.
install() already reconciles the Windows task on every invocation; force is accepted only for API parity (hermes_cli/gateway_windows.py:1031). Please recommend hermes gateway install here and in the other new warnings.
|
I reproduced this Windows gateway-status issue on a native Windows installation while troubleshooting a live Hermes gateway. While validating #55711, I found an additional observability gap in
On the tested system, the actual Scheduled Task action is:
and the Startup fallback is not installed. I built a tested follow-up on top of #55711 that:
I also incorporated the July 15 review feedback locally: remediation now recommends Validation on native Windows against current upstream:
The corrected live output is: I kept the production Hermes checkout untouched throughout testing. If this fits the intended scope of #55711, I'm happy to provide the tested follow-up commit or open a focused PR in whatever form is most useful. |
Signed-off-by: luyifan <al3060388206@gmail.com>
cfe52e6 to
7aa4980
Compare
|
Thanks — you’re right. Windows I rebased onto current |
|
@randydevlab Thanks for doing the native-Windows pass — reporting the observed Task action instead of an inferred path is a useful separate improvement. I kept this update narrow to the existing review request so the PR doesn’t grow another behavior surface this late. Your read-only/query-once approach sounds like a good focused follow-up; please feel free to open it against current |
|
Thanks — I finished the focused follow-up and pushed the tested commit here: It builds directly on the current #55711 head and keeps the change scoped to Windows gateway status observability:
Final validation on native Windows:
I haven’t opened a PR yet since this commit is directly stacked on #55711. Happy to transplant it onto |
What does this PR do?
hermes gateway status..cmdlauncher, no restart-on-failure, disabledStartWhenAvailable, or battery settings that can prevent/start-stop the gateway.Why?
hermes gateway statussays the task is registered even though it will not relaunch after an unexpected gateway exit.Review follow-up
main.hermes gateway install: Windows installs already recreate/reconcile the task, so--forceis unnecessary API parity.--force.Proof at
7aa4980eee272455331f0422163ea86be3a1d072bash scripts/run_tests.sh tests/hermes_cli/test_gateway_windows.py -q— 11/11 passed.git diff --check— passed.Notes
status.