Skip to content

Conversation

@miguelg719
Copy link
Collaborator

@miguelg719 miguelg719 commented Dec 1, 2025

why

what changed

test plan


Summary by cubic

Adds a 750ms delay before taking screenshots in MicrosoftCUAClient to prevent FARA timeouts when the provider isn’t ready. Improves reliability of screenshot capture without changing the returned data.

Why:

  • Screenshots were requested too soon, causing FARA to time out.
  • A brief wait ensures the screenshot provider is ready.

What:

  • Add a 750ms await before calling screenshotProvider() in MicrosoftCUAClient, then return the same data:image/png;base64 string.

Test Plan:

  • Trigger screenshot capture via MicrosoftCUAClient and confirm no timeout errors.
  • Verify the response starts with "data:image/png;base64," and decodes to a valid PNG.
  • Check logs/timing to see ~750ms delay before capture.

Written for commit b10fe65. Summary will update automatically on new commits.

@changeset-bot
Copy link

changeset-bot bot commented Dec 1, 2025

⚠️ No Changeset found

Latest commit: b10fe65

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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