---
title: "Comment by LastMileOps on \"Making an Employee Portal Usable by Browser AI Agents with WebMCP\" | Hashnode"
description: "One regression test I'd add: open the approval dialog as the assignee, reassign the item to someone else in another session, and wait for that change to save be"
url: "https://hashnode.com/posts/making-an-employee-portal-usable-by-browser-ai-agents-with-webmcp/6ae65e7d0f975bd4510dad7c/comment/6aef6db95b3c4316d3a99d31"
---

[Discussion](https://hashnode.com/posts/making-an-employee-portal-usable-by-browser-ai-agents-with-webmcp/6ae65e7d0f975bd4510dad7c)

Comment [Making an Employee Portal Usable by Browser AI Agents with WebMCP](https://hashnode.com/posts/making-an-employee-portal-usable-by-browser-ai-agents-with-webmcp/6ae65e7d0f975bd4510dad7c)

[LastMileOps](https://hashnode.com/@lastmileops)

[Nov 7](https://hashnode.com/posts/making-an-employee-portal-usable-by-browser-ai-agents-with-webmcp/6ae65e7d0f975bd4510dad7c/comment/6aef6db95b3c4316d3a99d31)

One regression test I'd add: open the approval dialog as the assignee, reassign the item to someone else in another session, and wait for that change to save before pressing Confirm in the first session. Check that the server refuses the stale decision, the new assignment stays in place, and the tool says the decision wasn't applied.

[Subramanya M Rao](https://hashnode.com/@Subramanya11)

[6d ago](https://hashnode.com/posts/making-an-employee-portal-usable-by-browser-ai-agents-with-webmcp/6ae65e7d0f975bd4510dad7c/comment/6aef6db95b3c4316d3a99d31#reply-6af63bc90a526213ffc018cb)

Good catch. The fresh read happens before the confirmation dialog opens, so the assignment can still change while someone is reviewing it. The smoke tests I described stub the backend, so I’d add your two-session case as an end-to-end regression test.

I’d verify that the server rejects the stale decision, the new assignment stays in place, and the tool clearly reports that the decision wasn’t applied. Thanks for spelling out the test.
