From 068c78bd275380087858c651457882efe44ef8af Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Apr 2026 23:16:13 +0000 Subject: [PATCH] fix: use apiFetch instead of fetch in doReboot() to include session credentials Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/34f637cc-b8b9-42e1-bdeb-e4b252fae648 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- app/sovran_systemsos_web/static/js/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sovran_systemsos_web/static/js/update.js b/app/sovran_systemsos_web/static/js/update.js index 1364c81..ac2e2b9 100644 --- a/app/sovran_systemsos_web/static/js/update.js +++ b/app/sovran_systemsos_web/static/js/update.js @@ -174,7 +174,7 @@ function doReboot() { if ($rebootOverlay) $rebootOverlay.classList.add("visible"); _rebootStartTime = Date.now(); _serverWentDown = false; - fetch("/api/reboot", { method: "POST" }).catch(function() {}); + apiFetch("/api/reboot", { method: "POST" }).catch(function() {}); // Wait 15 seconds before the first check — give the system time to actually shut down setTimeout(waitForServerReboot, 15000); }