mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -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-status-bar-style" content="black-translucent" />
|
||||||
<meta name="apple-mobile-web-app-title" content="Roomba Rover" />
|
<meta name="apple-mobile-web-app-title" content="Roomba Rover" />
|
||||||
<title>Roomba Rover</title>
|
<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">
|
<link rel="stylesheet" crossorigin href="/assets/index-v8lmO81Z.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const { getState: getHomeAssistantState, homeAssistantEvents } = homeAssistantSe
|
|||||||
const { getState: getNeatoState, neatoEvents } = neatoService;
|
const { getState: getNeatoState, neatoEvents } = neatoService;
|
||||||
const { getState: getLiftState, liftEvents } = liftService;
|
const { getState: getLiftState, liftEvents } = liftService;
|
||||||
const roverManager = require('../roverManager');
|
const roverManager = require('../roverManager');
|
||||||
const { getRecentMessages, sendSystemMessage, clearHistory: clearChatHistory } = require('../chatService');
|
const { getRecentMessages, sendSystemMessage } = require('../chatService');
|
||||||
const { subscribe } = require('../eventBus');
|
const { subscribe } = require('../eventBus');
|
||||||
const {
|
const {
|
||||||
PROMPT_PATH,
|
PROMPT_PATH,
|
||||||
@@ -131,7 +131,7 @@ function buildVoteStatus() {
|
|||||||
|
|
||||||
const eligibleCount = votesByIdentity.size;
|
const eligibleCount = votesByIdentity.size;
|
||||||
const onlineCount = yesCount + noCount;
|
const onlineCount = yesCount + noCount;
|
||||||
const gatePassed = eligibleCount === 0 ? true : yesCount > noCount;
|
const gatePassed = eligibleCount > 0 && yesCount > noCount;
|
||||||
return {
|
return {
|
||||||
yesCount,
|
yesCount,
|
||||||
noCount,
|
noCount,
|
||||||
@@ -487,11 +487,6 @@ function clearHistory(reason = 'admin requested clear history', options = {}) {
|
|||||||
if (resetPersistentMemory) {
|
if (resetPersistentMemory) {
|
||||||
runtime.memoryStore = saveMemory(createDefaultMemory());
|
runtime.memoryStore = saveMemory(createDefaultMemory());
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
clearChatHistory();
|
|
||||||
} catch (err) {
|
|
||||||
logger.warn('Failed to clear chat history during overseer clear', err.message);
|
|
||||||
}
|
|
||||||
updateStatus({
|
updateStatus({
|
||||||
phase: 'idle',
|
phase: 'idle',
|
||||||
currentRunId: null,
|
currentRunId: null,
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export default function OverseerPreferencePanel() {
|
|||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<input type="checkbox" checked={enabled} onChange={onToggle} />
|
<input type="checkbox" checked={enabled} onChange={onToggle} />
|
||||||
<span>Your vote: {enabled ? 'yes' : 'no'}</span>
|
<span>Your vote: {enabled ? 'Yes' : 'No'}</span>
|
||||||
</label>
|
</label>
|
||||||
<span className="text-xs">Enable a local LLM in chat</span>
|
<span className="text-xs">Enable a local LLM in chat</span>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user