Skip to content

Flutter driver updates, add screenshot support back #241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 23, 2025

Conversation

jakemac53
Copy link
Contributor

@jakemac53 jakemac53 commented Jul 23, 2025

  • All the flutter driver arguments are actually supposed to be string values so this fixes those schemas
  • Change the widget tree to not be the summary by default - summary trees hide nested text widgets which makes it hard for the LLM to find things. This can be explicitly toggled on though.
  • Added support for the flutter driver screenshot command, which works on simulators 🥳
  • Rework tests a bit so there is a helper for normal tool calls without retries
  • Removed the get_layer_tree and get_render_tree flutter driver commands for now - I don't see these ever being used.

Copy link

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

@@ -673,8 +672,8 @@ base mixin DartToolingDaemonSupport
// supported, but may be in the future.
enumValues: [
'get_health',
'get_layer_tree',
'get_render_tree',
// 'get_layer_tree',
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove commented out code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See the comment above, in this case I think it is helpful to have these because they are flutter driver methods we have chosen not to expose for now, but we could expose later. Finding these is actually pretty hard otherwise.

@jakemac53 jakemac53 merged commit 88d7a4d into main Jul 23, 2025
15 checks passed
@jakemac53 jakemac53 deleted the driver-schema-updates branch July 23, 2025 17:36
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Jul 30, 2025
Revisions updated by `dart tools/rev_sdk_deps.dart`.

ai (https://github.com/dart-lang/ai/compare/40607dc..7fbe88a):
  7fbe88a  2025-07-25  Jacob MacDonald  refine the prompt and fix the extension listener (dart-lang/ai#244)
  8d2384b  2025-07-25  Jacob MacDonald  add some intellij files to gitignore (dart-lang/ai#245)
  e09e469  2025-07-24  Jacob MacDonald  add prompt for using flutter driver to write a test for a user journey (dart-lang/ai#243)
  88d7a4d  2025-07-23  Jacob MacDonald  Flutter driver updates, add screenshot support back (dart-lang/ai#241)

http (https://github.com/dart-lang/http/compare/4a90d16..afda310):
  afda310  2025-07-23  Brian Quinlan  [cronet] Support aborting requests (dart-lang/http#1797)

test (https://github.com/dart-lang/test/compare/c201cc9..6aeb1e4):
  6aeb1e4f  2025-07-24  Nate Bosch  Consider NaN a match for itself (dart-lang/test#2524)
  65a37698  2025-07-23  Nate Bosch  Use latest analyzer and language version (dart-lang/test#2523)

web (https://github.com/dart-lang/web/compare/767151e..da1dd5d):
  da1dd5d  2025-07-24  Devon Carew  switch CI to using workflow files (dart-lang/web#428)
  8ffaf5e  2025-07-23  Nikechukwu  [interop] Implement Diagnostics and Handling Errors (dart-lang/web#426)

Change-Id: I499491c4c1466cb1c81cf5e4bbff4a484e880e57
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/442560
Auto-Submit: Devon Carew <devoncarew@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants