server restart thingy yay

This commit is contained in:
legop3
2026-09-14 18:42:42 -04:00
parent c56a8b1000
commit edc1b825f2
26 changed files with 330 additions and 312 deletions
@@ -105,7 +105,6 @@ export default function AdminPanelContent() {
rebootRover,
updateRover,
updateAllRovers,
rebootServer,
setAudioLevels,
setPersonalAudioAdjustmentRange,
setPrivateSafety,
@@ -119,7 +118,6 @@ export default function AdminPanelContent() {
const [lockStates, setLockStates] = useState({});
const [rebootStates, setRebootStates] = useState({});
const [updateStates, setUpdateStates] = useState({});
const [serverRebooting, setServerRebooting] = useState(false);
const [clearingLlmHistory, setClearingLlmHistory] = useState(false);
const [clearingOverseerHistory, setClearingOverseerHistory] = useState(false);
const health = session?.health || null;
@@ -229,18 +227,6 @@ export default function AdminPanelContent() {
}
};
const handleServerReboot = async () => {
const ok = window.confirm('Reboot the server host now? This will disconnect all users.');
if (!ok) return;
setServerRebooting(true);
try {
await rebootServer();
} catch (err) {
alert(err.message);
setServerRebooting(false);
}
};
const handleClearLlmHistory = async () => {
const ok = window.confirm(
'Clear LLM commentary history now? This resets chat context, bot memory, and rover activity metrics for narration.',
@@ -421,14 +407,6 @@ export default function AdminPanelContent() {
return (
<CardFrame title="Admin controls" actions={actions} bodyClassName="space-y-0.5 text-base">
<div className="flex gap-0.5 text-xs">
<button
type="button"
onClick={handleServerReboot}
disabled={serverRebooting}
className="button-danger disabled:cursor-not-allowed disabled:opacity-60"
>
{serverRebooting ? 'Server rebooting...' : 'Reboot Server'}
</button>
<button
type="button"
onClick={handleTestRewardOverlay}