Include config in status response and push on SIGHUP
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user