From da0484d544441d5c596b1a13fbf746b33fcdc0fe Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2026 07:24:26 +0100 Subject: [PATCH] Supply the offline canonical drawer context in memory proof The first browser attempt captured useWebSocket outside its required provider. Supply only the disconnected synthetic alert transport used by the canonical drawer; retain the failure and keep production presentation and acceptance assertions unchanged. Change-source: pulse-maintainer --- frontend-modern/browser-tests/guest-memory-agent-stale.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend-modern/browser-tests/guest-memory-agent-stale.tsx b/frontend-modern/browser-tests/guest-memory-agent-stale.tsx index df77b18f61..0cb4bb9e26 100644 --- a/frontend-modern/browser-tests/guest-memory-agent-stale.tsx +++ b/frontend-modern/browser-tests/guest-memory-agent-stale.tsx @@ -3,7 +3,7 @@ import { createSignal, Show } from 'solid-js'; import { render } from 'solid-js/web'; import { Router, Route } from '@solidjs/router'; -import { DarkModeContext } from '../src/contexts/appRuntime'; +import { DarkModeContext, WebSocketContext, type WebSocketStore } from '../src/contexts/appRuntime'; import { useWorkloads } from '../src/hooks/useWorkloads'; import { mergeCanonicalResourceDeltaSnapshot } from '../src/utils/resourceStateAdapters'; import { GuestRow } from '../src/components/Workloads/GuestRow'; @@ -51,6 +51,7 @@ const initial: Resource = { // Only the transport is synthetic; the canonical merger, mapper and mounted // presentation use production code. No websocket connection is attempted. window.__pulseWsStore = { + activeAlerts: {}, state: { resources: [], activeAlerts: [], recentlyResolved: [] }, connected: () => false, initialDataReceived: () => true, @@ -197,7 +198,9 @@ render( document.documentElement.classList.contains('dark')} > - + + + )} />