Inspector shows "Disconnected" after system sleep with no reconnect option, unlike Network tab which has offline/reconnect support
まだ誰も着手していません。
評価
調査の方向性
まず、Flutter のデバッグセッションでスリープと復帰のシーケンスを再現し、その後、Inspector の切断状態と Network タブのオフラインおよび再接続時の動作を比較します。Inspector の切断状態へのエントリポイントを追跡し、VM Service の利用可能性がどのように検出されるかを特定します。アプリを再起動せずに Inspector が再接続できるか、機能する reconnect または refresh アクションを提示できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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!
- 主要言語
- Dart
- スター
- 1.7k
- フォーク
- 405
- 平均マージ
- 4日 21時間
- マージ済み PR(30日)
- 15
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
flutter/devtools のほかの issue
-
cleanup P1
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
a: quality cost: low P2
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
contributions welcome cross-screen inspector-2.0-polish P2
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
cross-screen P3
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
documentation good first issue P2
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
flutter/devtools の issue をすべて見る
似ている issue
-
status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
a2ui-project/a2ui#2782 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
MaikuB/flutter_local_notifications#2832 · コメント 1 件 ·
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
fluttercommunity/plus_plugins#3979 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
from.page-issue
難易度 1/5 1時間未満 初心者へのやさしさ 85/100