Skip to content

Commit 2c7ba02

Browse files
committed
fix screenshot tool
1 parent 40aeaf5 commit 2c7ba02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/screenshot.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ async function handleScreenshot(
100100
registerScreenshot(sessionId, name, screenshotBase64);
101101

102102
// Notify the client that the resources changed
103+
// Must await to ensure proper message ordering on the transport
103104
const serverInstance = context.getServer();
104105

105106
if (serverInstance) {
106-
serverInstance.notification({
107+
await serverInstance.notification({
107108
method: "notifications/resources/list_changed",
108109
});
109110
}

0 commit comments

Comments
 (0)