1. Runtime tracking - Removed the 60s upper bound so restarts don't break hour counting

2. Chamber stream check - Added _active_chamber_streams check for A1/P1 printers (proactive)
3. Browser freeze - Removed immediate printerStatus invalidation on print_complete
This commit is contained in:
maziggy
2026-01-06 09:10:59 +01:00
parent c960b91f2a
commit fe1d10b705
4 changed files with 10 additions and 8 deletions
+2 -4
View File
@@ -196,10 +196,8 @@ export function useWebSocket() {
break;
case 'print_complete':
// Refetch printer status when print completes to clear printable_objects_count
if (message.printer_id !== undefined) {
queryClient.invalidateQueries({ queryKey: ['printerStatus', message.printer_id] });
}
// Don't invalidate printerStatus here - it causes re-render cascade and browser freeze
// The printer_status websocket messages will naturally update the status
debouncedInvalidate('archives');
debouncedInvalidate('archiveStats');
break;