Skip to content

Commit a8f4ee0

Browse files
committed
stability wait after mcp action set
1 parent 1106e0a commit a8f4ee0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/happy-fans-invent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"magnitude-mcp": patch
3+
---
4+
5+
stability wait after mcp action set

packages/magnitude-mcp/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
309309
}
310310
}
311311

312+
// Wait for page to stabilize after all actions
313+
await harness.waitForStability();
314+
312315
// Get current state
313316
const state = await getCurrentState();
314317

0 commit comments

Comments
 (0)