[dart_mcp_server] flutter_driver: expose set_frame_sync command#392
Draft
Ortes wants to merge 2 commits intodart-lang:mainfrom
Draft
[dart_mcp_server] flutter_driver: expose set_frame_sync command#392Ortes wants to merge 2 commits intodart-lang:mainfrom
Ortes wants to merge 2 commits intodart-lang:mainfrom
Conversation
Uncomment set_frame_sync from the flutter_driver_command enum so agents can disable frame synchronization for apps with continuous animations (Rive, Lottie, etc.) that cause tap/waitFor to time out. Fixes dart-lang#391
jakemac53
reviewed
Mar 12, 2026
| ), | ||
| ParameterNames.enabled: Schema.string( | ||
| description: | ||
| 'Used by set_text_entry_emulation, defaults to ' |
Contributor
There was a problem hiding this comment.
nit: Add a note here about set_frame_sync as well
PR HealthChangelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. This check can be disabled by tagging the PR with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #391.
Change
Uncomment
set_frame_syncfrom theflutter_driver_commandenum indtd.dart. Theenabledparameter was already present in the schema — this is a one-line change.Why
Apps with continuous animations (Rive, Lottie, loading spinners) keep
SchedulerBinding.transientCallbackCount > 0indefinitely, causingtap,waitFor, and other finder-based commands to always time out. Callingset_frame_syncwithenabled: falsedisables frame synchronization for the session, unblocking those commands — but it was unreachable through the MCP tool due to the enum restriction.