Skip to content

Commit 04c8403

Browse files
ochafikclaude
andcommitted
fix: persist markers after ontoolresult sets viewUUID
Markers from ontoolinput are added before viewUUID is available, so persistMarkers() was a no-op. Now explicitly persist after ontoolresult finishes setting up viewUUID and all markers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fc59ca8 commit 04c8403

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

examples/map-server/src/mcp-app.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,12 @@ app.ontoolresult = async (result) => {
13591359
);
13601360
}
13611361

1362+
// Ensure all current markers are persisted (initial markers from ontoolinput
1363+
// were added before viewUUID was set, so persistMarkers() was a no-op then)
1364+
if (viewUUID && markerMap.size > 0) {
1365+
persistMarkers();
1366+
}
1367+
13621368
// Start polling for commands now that we have viewUUID
13631369
if (viewUUID) {
13641370
startPolling();

0 commit comments

Comments
 (0)