overseer off when no one online

This commit is contained in:
legop3
2026-05-21 00:56:54 -04:00
parent b62af19418
commit 8727555788
4 changed files with 5 additions and 10 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -11,7 +11,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Roomba Rover" />
<title>Roomba Rover</title>
<script type="module" crossorigin src="/assets/index-Clo5tO9B.js"></script>
<script type="module" crossorigin src="/assets/index-DqqTkkpY.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-v8lmO81Z.css">
</head>
<body>
@@ -14,7 +14,7 @@ const { getState: getHomeAssistantState, homeAssistantEvents } = homeAssistantSe
const { getState: getNeatoState, neatoEvents } = neatoService;
const { getState: getLiftState, liftEvents } = liftService;
const roverManager = require('../roverManager');
const { getRecentMessages, sendSystemMessage, clearHistory: clearChatHistory } = require('../chatService');
const { getRecentMessages, sendSystemMessage } = require('../chatService');
const { subscribe } = require('../eventBus');
const {
PROMPT_PATH,
@@ -131,7 +131,7 @@ function buildVoteStatus() {
const eligibleCount = votesByIdentity.size;
const onlineCount = yesCount + noCount;
const gatePassed = eligibleCount === 0 ? true : yesCount > noCount;
const gatePassed = eligibleCount > 0 && yesCount > noCount;
return {
yesCount,
noCount,
@@ -487,11 +487,6 @@ function clearHistory(reason = 'admin requested clear history', options = {}) {
if (resetPersistentMemory) {
runtime.memoryStore = saveMemory(createDefaultMemory());
}
try {
clearChatHistory();
} catch (err) {
logger.warn('Failed to clear chat history during overseer clear', err.message);
}
updateStatus({
phase: 'idle',
currentRunId: null,