Skip to content

fix: sync select mode widget selection#27

Merged
drown0315 merged 1 commit into
mainfrom
fix/select-mode-widget-selection
Jul 9, 2026
Merged

fix: sync select mode widget selection#27
drown0315 merged 1 commit into
mainfrom
fix/select-mode-widget-selection

Conversation

@drown0315

Copy link
Copy Markdown
Owner

Summary

Fixes Select Widget mode so tapping the live device surface synchronizes the selected widget back into the web workbench. The Widget Tree now follows the Flutter Inspector selection and the right-side selected widget panel updates from the same event.

What Changed

  • Added bridge-side monitoring for Flutter Inspector selection changes via VM Service Debug Inspect events.
  • Forwarded widget selection changes through the existing bridge SSE session event stream.
  • Added web session event parsing and state handling for widget selection changes.
  • Expanded and scrolled the Widget Tree to externally selected widgets.
  • Added regression coverage for bridge event forwarding, Inspector selection publishing, web event parsing, and ancestor expansion.

Why

Select Widget mode highlighted widgets in the Flutter app, but the web app never received the selected widget id. This left the Widget Tree and selected widget panel stale after device-surface taps.

Verification

  • apps/bridge: dart test
  • apps/web: npm test
  • apps/web: npm run build

@drown0315
drown0315 merged commit 2e34867 into main Jul 9, 2026
2 checks passed
@drown0315
drown0315 deleted the fix/select-mode-widget-selection branch July 9, 2026 13:01
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.

1 participant