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
@@ -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,