Inspector shows "Disconnected" after system sleep with no reconnect option, unlike Network tab which has offline/reconnect support
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện chuỗi ngủ và thức dậy trong một phiên debug Flutter, sau đó so sánh trạng thái ngắt kết nối của Inspector với hành vi offline và kết nối lại của tab Network. Truy tìm điểm bắt đầu đi vào trạng thái ngắt kết nối của Inspector và xác định cách phát hiện tính khả dụng của VM Service; công việc được xem là hoàn tất khi Inspector có thể kết nối lại hoặc cung cấp một thao tác reconnect hoặc refresh hoạt động mà không cần khởi động lại ứng dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
When the host machine goes to sleep while a Flutter debug session is running,
the DevTools Inspector panel becomes permanently disconnected and shows
"Run a new debug session to reconnect." — requiring a full app restart.
In contrast, the Network tab handles this gracefully:
- Shows the same "Disconnected" state
- Offers a "Review recent data (offline)" button
- Reconnects automatically or with a simple tab close/reopen
Steps to Reproduce
- Start a Flutter debug session
- Open DevTools → Inspector
- Let the machine go to sleep (or manually suspend)
- Wake the machine
- Observe Inspector is stuck in "Disconnected" state
Expected Behavior
Inspector should either:
- Option A: Auto-reconnect when the VM Service becomes available again
- Option B: Show a "Reconnect" or "Refresh" button (similar to how
Network tab handles disconnection)
Actual Behavior
Inspector shows "Disconnected - Run a new debug session to reconnect."
No reconnect/refresh option is available. A full app restart is required.
Workaround
For Network tab: close and reopen the tab in DevTools → reconnects fine
For Inspector: must stop and re-run the entire debug session
Proposal
Add a Reconnect / Refresh button to the Inspector's disconnected state,
consistent with the Network tab's offline handling UX.
Environment
[✓] Flutter (Channel stable, 3.41.4, on macOS 26.3 25D125 darwin-arm64, locale en-UZ)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.3)
[✓] Chrome - develop for the web
[✓] Connected device (3 available)
! Error: Browsing on the local area network for I.S.K.A.N.D.A.R. Ensure the device is unlocked and
attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• No issues found!
- Ngôn ngữ chính
- Dart
- Star
- 1.7k
- Fork
- 405
- Merge trung bình
- 4 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 15
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flutter/devtools
-
cleanup P1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
`dcm analyze` false positives Đang mởa: quality cost: low P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
contributions welcome cross-screen inspector-2.0-polish P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Support removing storage keys Đang mởcross-screen P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
documentation good first issue P2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Tất cả issue của flutter/devtools
Issue tương tự
-
status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
a2ui-project/a2ui#2782 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
MaikuB/flutter_local_notifications#2832 · 1 bình luận ·
-
[Bug]: New version of nm package Đang mởbug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
fluttercommunity/plus_plugins#3979 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
from.page-issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100