mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
overseer off when no one online
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user