3 Commits

Author SHA1 Message Date
Sovran_Systems 20b1486547 Merge pull request #229 from naturallaw777/copilot/fix-reboot-issue-fetch-call
fix: use apiFetch in doReboot() to send session credentials with reboot request
2026-04-13 18:17:47 -05:00
copilot-swe-agent[bot] 068c78bd27 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>
2026-04-13 23:16:13 +00:00
copilot-swe-agent[bot] 32b2ee7117 Initial plan 2026-04-13 23:15:32 +00:00
+1 -1
View File
@@ -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);
}