Skip to content

--no-hot flag on web-server is not working #179448

Description

@BirjuVachhani

Steps to reproduce

When passing --no-hot flag to disable new hot-reload on web, the flag doesn't seem to be working. With the flag and hot-reload disabled, doing a hot-reload should actually do a hot restart like it used to before. But instead, it does hot reload regardless it seems.

Steps:

  • Run flutter run -d web-server --no-hot.
  • In the console, Press r (Shift+r) for hot restart and it works fine.
  • In the console, press r and it should also do hot restart but rather does hot reload.

Expected results

When --no-hot flag is passed, hot reload and hot restart both should be the same like it used to before hot-reload support on web.

Actual results

When --no-hot flag is passed, it still does a hot-reload.

Code sample

Code sample
flutter run -d web-server --no-hot

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.38.3, on macOS 26.1 25B78 darwin-arm64, locale en-US) [970ms]
    • Flutter version 3.38.3 on channel stable at /Volumes/Storage/Data/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 19074d12f7 (2 weeks ago), 2025-11-20 17:53:13 -0500
    • Engine revision 13e658725d
    • Dart version 3.10.1
    • DevTools version 2.51.1
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration

[!] Android toolchain - develop for Android devices (Android SDK version 36.1.0-rc1) [3.2s]
    • Android SDK at /Volumes/Storage/Data/Android/Sdk
    • Emulator version 36.2.12.0 (build_id 14214601) (CL:N/A)
    • Platform android-36.1, build-tools 36.1.0-rc1
    • ANDROID_HOME = /Volumes/Storage/Data/Android/Sdk
    • ANDROID_SDK_ROOT = /Volumes/Storage/Data/Android/Sdk
    • Java binary at: /Volumes/Storage/Data/JetBrains/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 26.1.1) [1,957ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17B100
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [55ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (3 available) [6.1s]
    • Birju’s iPhone (wireless) (mobile) • 00008110-000E35A83A82401E • ios            • iOS 26.1 23B85
    • macOS (desktop)                    • macos                     • darwin-arm64   • macOS 26.1 25B78 darwin-arm64
    • Chrome (web)                       • chrome                    • web-javascript • Google Chrome 143.0.7499.40

[✓] Network resources [1,251ms]
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listblockedIssue is blocked by another issuefound in release: 3.38Found to occur in 3.38found in release: 3.39Found to occur in 3.39fyi-toolFor the attention of Flutter Tool teamhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyt: hot reloadReloading code during "flutter run"team-webOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-webTriaged by Web platform team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions