From 2c7ba024e55597e563c7e922bdc92c99190e7fa4 Mon Sep 17 00:00:00 2001 From: Shrey Pandya Date: Tue, 9 Dec 2025 16:45:53 -0800 Subject: [PATCH 1/2] fix screenshot tool --- src/tools/screenshot.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/screenshot.ts b/src/tools/screenshot.ts index e0a9a55..a97f602 100644 --- a/src/tools/screenshot.ts +++ b/src/tools/screenshot.ts @@ -100,10 +100,11 @@ async function handleScreenshot( registerScreenshot(sessionId, name, screenshotBase64); // Notify the client that the resources changed + // Must await to ensure proper message ordering on the transport const serverInstance = context.getServer(); if (serverInstance) { - serverInstance.notification({ + await serverInstance.notification({ method: "notifications/resources/list_changed", }); } From b53849e0cf76036835b0a9bda595244ffd2bae13 Mon Sep 17 00:00:00 2001 From: Shrey Pandya Date: Tue, 9 Dec 2025 16:48:02 -0800 Subject: [PATCH 2/2] remove slop comment --- src/tools/screenshot.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tools/screenshot.ts b/src/tools/screenshot.ts index a97f602..facc895 100644 --- a/src/tools/screenshot.ts +++ b/src/tools/screenshot.ts @@ -100,7 +100,6 @@ async function handleScreenshot( registerScreenshot(sessionId, name, screenshotBase64); // Notify the client that the resources changed - // Must await to ensure proper message ordering on the transport const serverInstance = context.getServer(); if (serverInstance) {