Repository navigation
docs(flutter): document Dart MCP reconnects after a rebuild - #393
Merged
Merged
Conversation
Hot reload and hot restart keep the DTD connection. A full rebuild needs a new connect call with the new URI. A killed flutter run can leave the server attached to the old app. The skill now names each recovery and the Pickforge screenshot and adb fallback. Refs #360
…uild # Conflicts: # docs/releases/UNRELEASED.md
Merged
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.
Users reported that the Dart MCP server loses its connection when a Flutter app rebuilds, and that it connects to one DTD URI per session. The Flutter skill did not say what to do then.
A reproduction in a Pickforge session shows that hot reload and hot restart keep the connection. A full rebuild needs a new connect call. A killed
flutter runleaves the server stuck on the old app. The Flutter skill now documents these recovery steps and the Pickforge fallback when the server is not connected. It also starts Flutter only after the session environment loads.Proof: an MCP client drove
dart mcp-serverover stdio against an app in an isolated desktop session through four runs;cargo test -p pickforge-cliand the live Flutter test pass.Sol review: round 1 found that a failed
desktop envstill started Flutter on the host display (blocker), round 2 approved.Closes #360
Rand thehot_restarttool;qthen a newflutter run;flutter runkilled with the app left runningq, tools fail with "not connected" and a new connect works; after a kill, the server reads the old app and a new connect fails with "already connected"~/.pickforge/investigations/360/run1torun4,sdk-versions.txtcargo test -p pickforge-cli;PICKFORGE_LIVE_FLUTTER=1 cargo test -p pickforge-cli --test live_flutterdesktop screenshot,android screenshot,android ui-tree,android logcatandandroid adb, and says to record that the runtime was unavailableSKILL.mdand the release note change~/.pickforge/investigations/360/upstream-issue-draft.mdpickforge-labandflutterin sh and bashdesktop envfails, or succeedsFollow-ups: #382 (
launch_appand session isolation), #383 (repeat on a newer Flutter), #391 (file the upstream limit), #379 (sameevalrecipe in README and INSTALL).The release notes also drop the Known limits line for the Chrome flag bar, because #348 fixed it in #392.