Merge commit 'refs/pull/6088/head' of github.com:nesquena/hermes-webui into stage/6088-manualupd

This commit is contained in:
nesquena-hermes committed 2026-07-15 20:02:02 +00:00
commit 754dcca048
1 file changed
+6 -1
+6 -1
View File
@@ -13722,7 +13722,12 @@ def handle_post(handler, parsed) -> bool:
if parsed.path == "/api/updates/check":
settings = load_settings()
if not settings.get("check_for_updates", True):
return j(handler, {"disabled": True})
force = bool(body.get("force", False)) if isinstance(body, dict) else False
if force:
# Manual force-check bypasses auto-check toggle (#6082)
pass
else:
return j(handler, {"disabled": True})
include_agent_updates = not bool(settings.get("ignore_agent_updates"))
force = bool(body.get("force", False))
# Allow the client to pass the channel explicitly in the POST body. This