Skip to content

chore: add platform and tool orchestrator#31

Merged
pnarayanaswamy merged 12 commits into
mainfrom
add-device-mcp-support
Jun 2, 2026
Merged

chore: add platform and tool orchestrator#31
pnarayanaswamy merged 12 commits into
mainfrom
add-device-mcp-support

Conversation

@pnarayanaswamy

Copy link
Copy Markdown
Contributor

No description provided.

@pnarayanaswamy pnarayanaswamy requested a review from a team as a code owner May 28, 2026 14:01
() => config.sessionManager.getPage(),
config.sessionManager,
))
: undefined;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this cause issues for mobile platform?
If we are launching (first tool) with platform ios, at that time, we do not have an active session, so we are defaulting the driver to be the Playwright one.
The driver is then used here for collecting observations post tool usage. That will be broken for Mobile

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all tools would work, except the launch tool

Comment thread src/platform/playwright-driver.ts Outdated
* @param _toolName - The tool name to check.
* @returns Always true for browser platform.
*/
isToolSupported(_toolName: string): boolean {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this method? Aren't we gating with the isBrowserOnlyTool?
Having both is a bit confusing.. I personally think that the driver should dictate which tools it supports, but we can add that pattern later and keep the simpler isBrowserOnlyTool for now

Comment thread src/tools/interaction.ts Outdated
const errorInfo = classifyClickError(error);
if (
errorInfo.code === ErrorCodes.MM_WAIT_TIMEOUT ||
errorInfo.message.includes('visibility wait consumed entire budget')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is dead code... if the error message has "timeout" then the error code will be MM_WAIT_TIMEOUT

@pnarayanaswamy pnarayanaswamy enabled auto-merge (squash) June 2, 2026 12:47
@pnarayanaswamy pnarayanaswamy merged commit edb5870 into main Jun 2, 2026
25 checks passed
@pnarayanaswamy pnarayanaswamy deleted the add-device-mcp-support branch June 2, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants