Include config in status response and push on SIGHUP

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-01-28 08:30:23 -08:00
parent 85780b9419
commit 6ae561b968
3 changed files with 9 additions and 15 deletions

View File

@@ -1725,13 +1725,10 @@
}, 10000);
}
evtSource.addEventListener('status', async (event) => {
evtSource.addEventListener('status', (event) => {
resetHeartbeat();
const data = JSON.parse(event.data);
if (!currentConfig) {
const configResp = await fetch('/api/config');
currentConfig = await configResp.json();
}
currentConfig = data.config || {};
render(data, currentConfig);
});