We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40aeaf5 commit 2c7ba02Copy full SHA for 2c7ba02
src/tools/screenshot.ts
@@ -100,10 +100,11 @@ async function handleScreenshot(
100
registerScreenshot(sessionId, name, screenshotBase64);
101
102
// Notify the client that the resources changed
103
+ // Must await to ensure proper message ordering on the transport
104
const serverInstance = context.getServer();
105
106
if (serverInstance) {
- serverInstance.notification({
107
+ await serverInstance.notification({
108
method: "notifications/resources/list_changed",
109
});
110
}
0 commit comments